How can I capture / intercept all the messages/user inputs of 'sub-controls'?

  • Thread starter Thread starter babylon
  • Start date Start date
B

babylon

I wrote an user control which contains 4 textboxes
I would like to, e.g., force the user to enter something from the first
textbox to the last box in order

i.e. if the user click on the 4th textbox, my control will set the focus
back to 1st textbox and let the user input first...

how can i do it?!?!

thank you
 
Handle the Enter event for each textbox and set focus back to the control
you want

/claes
 
* "babylon said:
I wrote an user control which contains 4 textboxes
I would like to, e.g., force the user to enter something from the first
textbox to the last box in order

i.e. if the user click on the 4th textbox, my control will set the focus
back to 1st textbox and let the user input first...

Call the first control's 'Focus' method in the 3rd control's 'GotFocus' or 'Enter'
event handler.
 
Back
Top