Changes

Jump to: navigation, search

Understanding Visual Basic Events

680 bytes added, 17:13, 17 July 2007
Wiring Up Events in Visual Studio
[[Image:Exampl.jpg]]
 
With the ''TextChanged'' event still selected it is time to write the Visual Basic code that will be executed when the event is triggered. To do so, we will need to set the ''Text'' property of the ''myLabel'' control to equal the ''Text'' property of the ''inputText'' control. The properties of objects are accessed using what is called dot notation. For example the ''Text'' property of ''myLabel'' is accessed in Visual basic code as follows:
 
<tt>myLabel.Text</tt>
 
 
 
The left-hand drop down menu contains a list of all the objects in our application and may be used to switch to editing the event procedures for an object other than the currently selected TextBox control.

Navigation menu