|
-
Nov 6th, 1999, 08:03 PM
#2
Lively Member
I think this is what you're after,
Add a command button and a textbox to form1
Option Explicit
Private Sub Command1_Click()
Dim Result As VbMsgBoxResult
Result = MsgBox("Would you like to set the focus to the textbox?", vbQuestion + vbYesNo, "Set Focus")
If Result = vbYes Then
Text1.SetFocus
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
|