Здравствуйте, Qb1024, Вы писали:
Q>Вызов функции PInvoke "WindowsApplication5!WindowsApplication5.Form1::Sho wWindow" разбалансировал стек. ...
Вероятно, ему не хватает
<DllImport("KERNEL32.DLL", EntryPoint:="MoveFileW", SetLastError:=True, _
CharSet:=CharSet.Unicode, ExactSpelling:=True, _
CallingConvention:=CallingConvention.StdCall)> _ ' <<<<<
Public Shared Function _
MoveFile(ByVal src As String, ByVal dst As String) As Boolean
' This function copies a file from the path src to the path dst.
' Leave function empty - DLLImport attribute forces calls
' to MoveFile to be forwarded to MoveFileW in KERNEL32.DLL.
End Function