textbox OnGotFocus-where?

  • Thread starter Thread starter Gabor
  • Start date Start date
G

Gabor

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
 
* "Gabor said:
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".
 
Hi Herfried,

Thank You for the answer, but despite unchecking the beformentioned
checkbox, the GotFocus event still missing.

Gabor
 
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.
 
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.
 
Back
Top