Devi ovviamente prima importare la funzione SetWindowPos :
e ovviamente importare il Namespace:codice:<DllImport("user32.dll", CharSet:=CharSet.Auto, CallingConvention:=CallingConvention.StdCall)> _ Public Shared Function SetWindowPos(ByVal hWnd As IntPtr, ByVal hWndInsertAfter As IntPtr, _ ByVal X As Int32, ByVal Y As Int32, ByVal cx As Int32, ByVal cy As Int32, ByVal uFlags As Int32) As Boolean End Function
codice:Imports System.Runtime.InteropServices

Rispondi quotando