Visual Basic - UN FORM ON TOP MOST

Life is soft - evento anual de software empresarial
 
Vista:

UN FORM ON TOP MOST

Publicado por JOSE LUIS (26 intervenciones) el 06/07/2001 11:17:24
NECESITO PONER UN FORM ARRIBA DE TODAS LAS VENTANAS QUE HAYA EN EL ESCRITORIO. CUANDO CLICKEE CUALQUIER OTRA, QUE éSTA PERMANEZCA POR ENSIMA. GRACIAS POR LA AYUDA.
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder

Tu respuesta

Publicado por Caleb (30 intervenciones) el 07/07/2001 22:56:17
'Ejemplo: colocas un Control Check y copias este código

Private Declare Function SetWindowPos Lib "user32" (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 Sub Check1_Click()
If Check1.Value = 1 Then 'Mantener form encima
SetWindowPos Me.hwnd, -1, 0, 0, 0, 0, 3
Else 'Posición Normal
SetWindowPos Me.hwnd, -2, 0, 0, 0, 0, 3
End If
End Sub
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar