By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,344 Members | 1,114 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,344 IT Pros & Developers. It's quick & easy.

textbox OnGotFocus-where?

P: n/a
I want to capture the textbox ongotfocus event, but it is missing in the
event list. I found the Enter event, but it seems doesn't work.

What I'm doing wrog?

Thanks in advance

Gabor
Nov 20 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
* "Gabor" <pr******@axelero.hu> scripsit:
I want to capture the textbox ongotfocus event, but it is missing in the
event list. I found the Enter event, but it seems doesn't work.


You can show advanced members in the code editor with the "Hide advanced
members" option under "Tools" -> "Options" -> "Text Editor" -> "Basic"
-> "General".

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #2

P: n/a
Hi Gabor,

Thanks for posting in the community.

You may try the code below to see if the GotFocus event will be fired.
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
AddHandler TextBox1.GotFocus, AddressOf TextBox1_GotFocus
End Sub

Private Sub TextBox1_GotFocus(ByVal sender As Object, ByVal e As
System.EventArgs)
Debug.WriteLine("Got Focus Fired")
End Sub

Please press F5 to run your project.
You may have a try and let me know the result at your earliest convenience.

Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.

Nov 20 '05 #3

P: n/a
Hi Garbor,

Have you tried my code, did this works for you?
If you have any concern on this issue,please post here.

Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.

Nov 20 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.