|
-
January 29th, 2000, 03:56 PM
#1
How to....
If text1 has focus then I need X = text1, if text2 has focus then I need X = text2, if text3 has focus then I need X = text3, etc.
How can I do that?
-
January 29th, 2000, 04:19 PM
#2
Re: How to....
Use the ActiveControl Object which is a Reference to whichever Control is Currently Active, (Has Focus), ie.
private Sub Form_Load()
Timer1.Interval = 100
End Sub
private Sub Timer1_Timer()
If TypeOf ActiveControl is TextBox then
Caption = ActiveControl.Text
else
Caption = ""
End If
End Sub
Aaron Young
Analyst Programmer
[email protected]
[email protected]
-
January 29th, 2000, 04:49 PM
#3
Re: How to....
Thanks Aaron, just what I needed 
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
|