|
-
Oct 31st, 2000, 06:04 AM
#1
Thread Starter
Addicted Member
how do you enable a windows with a sertine title can some one help me
WHat would we do with out Microsoft.
A lot more.
-
Oct 31st, 2000, 06:28 AM
#2
Lively Member
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.
-
Oct 31st, 2000, 06:47 AM
#3
_______
<?>
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
"A myth is not the succession of individual images,
but an integerated meaningful entity,
reflecting a distinct aspect of the real world."
___ Adolf Jensen
-
Oct 31st, 2000, 04:26 PM
#4
Thread Starter
Addicted Member
no i mean like a windows window you know what i mean like a dir windows or somthing like that explore or somtthing
WHat would we do with out Microsoft.
A lot more.
-
Oct 31st, 2000, 07:56 PM
#5
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|