24/08/09 10:41
alfa93
Devo impostare il form sempre in primo piano, allora ho usato il codice postato da voi ma mi dice che hwnd non è dichiarato.
pierotofy.it/pages/guide_tutorials/Visual_Basic/Form_in_primo_piano/…
pierotofy.it/pages/guide_tutorials/Visual_Basic/Form_in_primo_piano/…
Private Declare Function SetWindowPos Lib "user32.dll" (ByVal hwnd As Long, _ ByVal hWndInsertAfter As Long, ByVal X As Long, ByVal Y As Long, _ ByVal cx As Long, ByVal cy As Long, ByVal wFlags As Long) As Long Private Const HWND_TOP As Long = 0 Private Const HWND_TOPMOST As Long = -1 Private Const HWND_NOTOPMOST As Long = -2 Private Const SWP_NOMOVE As Long = &H2 Private Const SWP_NOSIZE As Long = &H1
SetWindowPos Form1.hwnd, HWND_TOPMOST, 0, 0, 0, 0, SWP_NOMOVE + SWP_NOSIZE
aaa