F
fmarchioni
Hi all,
I need to highlight textbox in a Form when they are selected.
In order to do it I have added for each one a .GotFocus and .LostFocus
Event Handler....
textRS.GotFocus += new EventHandler(gotFocus_Event);
textName.GotFocus += new EventHandler(gotFocus_Event);
textSurname.GotFocus += new EventHandler(gotFocus_Event);
textAddress.GotFocus += new EventHandler(gotFocus_Event);
textRS.LostFocus += new EventHandler(lostFocus_Event);
textName.LostFocus += new EventHandler(lostFocus_Event);
textSurname.LostFocus += new EventHandler(lostFocus_Event);
textAddress.LostFocus += new EventHandler(lostFocus_Event);
I'd like to know how can I accomplish the same iterating through all
TextBoxes in the Form, so I can use this function in all Forms....
Thanks a lot
Francesco
I need to highlight textbox in a Form when they are selected.
In order to do it I have added for each one a .GotFocus and .LostFocus
Event Handler....
textRS.GotFocus += new EventHandler(gotFocus_Event);
textName.GotFocus += new EventHandler(gotFocus_Event);
textSurname.GotFocus += new EventHandler(gotFocus_Event);
textAddress.GotFocus += new EventHandler(gotFocus_Event);
textRS.LostFocus += new EventHandler(lostFocus_Event);
textName.LostFocus += new EventHandler(lostFocus_Event);
textSurname.LostFocus += new EventHandler(lostFocus_Event);
textAddress.LostFocus += new EventHandler(lostFocus_Event);
I'd like to know how can I accomplish the same iterating through all
TextBoxes in the Form, so I can use this function in all Forms....
Thanks a lot
Francesco