adding usr defined event procedure of textbox in usrform ??

T

tom taol

i want to make two event procedure(TextBox1_LostFocus,TextBox1_GotFocus)
except default event(TextBox1_Change,
TextBox1_KeyDown,TextBox1_MouseMove...)

how to add event proc in default textbox????
please,,,

thank you very much.

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
 
S

Sharad

For TextBox1_GotFocus use the TextBox1_Enter event and for
TextBox1_LostFocus use TextBox1_Exit event.

These event can be used for other types of controls (CommandButton,
CheckBox) etc. also.
These are same as GotFocus and LostFocus events, and work same way when
ever the control gets or loses focus.

Additionally when the form is loaded, _Enter event for the active
control the will be fired. When the form is unloaded, _Exit event for
the control which was active, will be fired.

Sharad

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top