how do you enable a windows with a sertine title can some one help me
Printable View
how do you enable a windows with a sertine title can some one help me
If you think what I think you mean....
me.caption = "window title"
or you can set the caption in the property box at the LHS.
(me is used instead of the form name - aids reuse!)
Hope it helps
H.
If you are talking windows within your own app.
If you mean, you have 2 forms and you want to to
form form1 to form 2.
Form1.visisble = false
Form2.visible = true
Forms also have an enabled property
Form1.enabled = true
or
Form1.enabled = false
no i mean like a windows window you know what i mean like a dir windows or somthing like that explore or somtthing
Use the FindWindow and SetForegroundWindow api functions.
Code:Declare Function FindWindow Lib "user32" _
Alias "FindWindowA" (ByVal lpClassName As String, ByVal _
lpWindowName As String) As Long
Public Declare Function SetForegroundWindow Lib "user32" _
(ByVal hwnd As Long) As Long
Private Sub Command1_Click()
hWin = FindWindow(vbNullString, "Folder caption")
If hWin <> 0 Then
SetForegroundWindow hWin
End If
End Sub