This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.
----=_NextPart_ST_12_23_04_Thursday_June_20_2002_15759
Content-Type: text/plain
I don't know if there is an easier way but.....
Dim ctl As Control
For Each ctl In Form.Controls
If TypeOf ctl Is TextBox Then
If ctl.GotFocus Then
'do something
End If
End If
Next ctl
'only do the if TypeOf if you want to specify which type of control you are looking at
Patrick Laferriere
Systems Analyst / Developer, MCP
Transitions Optical Inc.
Plaferriere@T...
xxx.xxx.xxxx Ext 2222
-----Original Message-----
From: Rommel Relosa [mailto:rrelosa@n...]
Sent: Thursday, June 20, 2002 12:20 PM
To: professional vb
Subject: [pro_vb] Which Control has focus?
Hello, all.
Is it possible to programatically determine which control currently has focus?
Any assistance is greatly appreciated.
Thank you.
Rommel Relosa
Nationwide Auction Systems
www.nationwideauction.com <http://www.nationwideauction.com>
--- Change your mail options at http://p2p.wrox.com/manager.asp or