Hi,
I have recently shifted from VB6 to C#. Please tell me the equivalent in C# of Lost_Focus for a text box in VB6 and how do i define it.
Thanks & Regards,
Ashish
Printable View
Hi,
I have recently shifted from VB6 to C#. Please tell me the equivalent in C# of Lost_Focus for a text box in VB6 and how do i define it.
Thanks & Regards,
Ashish
There is a LostFocus event for the TextBox.
DJ
TextBox.Leave event (and GotFocus is TextBox.Enter)Quote:
Originally Posted by ashish_0311
rate my posts :wave:
Please do not ask directly for rep points.Quote:
Originally Posted by MrPolite
I realize your question was already answered, but here is a way to discover the answer yourself...
- Drag/drop the control onto a form (make sure it's selected)
- View the Properties window
- Click the Event button in the Prop window (with the Lightning Bolt icon)
- Right-click the Properties window and make sure "Description" is checked
- Scroll through the events and see if one sounds like what you want
- If you're not sure, select the event and read it's description in the bottom of the window
Hope that helps!