Changes

Jump to: navigation, search

Understanding Visual Basic Events

1 byte removed, 19:20, 13 August 2007
no edit summary
</pre>
Visual Studio, of course, makes life easy for us when accessing peroperties properties of objects. At the point that you type the '.' after ''myLabel'' a drop down list of properties available with this type of object is displayed from which to choose. Either select the ''Text'' property from the list, or continue to type the word ''Text''. Repeat this for the ''textInput'' property:
[[Image:visual_studio_event_completion.jpg]]
Now, when the button is pressed the application will exit.
Finally, build and run the application bt by pressing the '''F5'' key or clicking on the Debug button in the toolbar (the button displaying the green ''Play'' triangle). The application should compile and run. When you type text into the TextBox the characters should also appear in the label:
[[Image:vb_event_example.jpg]]

Navigation menu