Oppure

Loading
07/10/09 16:47
marco1
Qualcuno saprebbe spiegarmi come creare quelle form che stanno sempre in primo piano di un programma??? dove ci sono tutti i tool tip in PhotoShop o in Gimp...???

E poi quelle altre che stanno incastonate nelle toolbar e quando le trascini fuori diventano form normali tipo la finestra di proprietà in vb6 ???
aaa
07/10/09 17:33
GrG
per mantenere il form in 1° piano

Dichiari:
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

nella sub form_load() scrivi:
SetWindowPos Form1.hwnd, HWND_TOPMOST, 0, 0, 0, 0, SWP_NOMOVE + SWP_NOSIZE
aaa