C control validating event Onefreexxx
The Process Enter handler changes the background color of a textbox to a wheat color (light tan) and the Process Leave handler changes the background color back to the standard Window color. Wheat End Sub Private Sub Process Leave(By Val sender As Object, _ By Val e As System. In addition, as you add forms to the application, you don't need to remember to wire up the events.
You can modify these handlers to process other types of controls as well. NET: Private Sub Process Enter(By Val sender As Object, _ By Val e As System. To inherit from the base form class from any form in your application, you simply change the class declaration for the form.
To access the controls contained in pnl Selection, you have to access the Controls collection for pnl Selection.
To access the controls on the tab control on pnl Information, you have to access the Controls collection for pnl Information (which contains the tab control), the Controls collection for the tab control (which contains the tab pages), and then the Controls collection of each of the tab pages (which contains the text boxes).
The base form loads automatically when an inherited form loads.
So the best place to put the code to "wire up" the event handler is in the Load event of the base form class: In VB. NET) or this (C#) refers to the currently running instance, which is the instance of the form that inherits from this base form class, commonly called a child form.
NET (Apress), Doing Objects in Visual Basic 6.0 (SAMS) and Doing Web Development: Client-Side Techniques (Apress).