Visual Basic .NET   Windows application An interface with visual objects for communicating with the user Buttons, check boxes and text boxes   Object-oriented   programming language Performing tasks with objects... The user interacts with the program Event-driven   application Program runs when the user does something An  event  can occur when the user interacts with an object…clicking a button
Visual Basic .NET Design Window Solution  Explorer  window Toolbox Design window Properties window
Visual Basic .NET   Objects Form A graphical object that contains a title bar and close buttons The main work space for your program Text property  – what is displayed in its title bar   Label Displays text that  cannot be changed  by the user Text property  – the text displayed in the label Font property  – font, style and size of text TextAlign property  – alignment of text in the label MainMenu A list of options in menu form Text property  – will display the menu name
Naming Objects Name property Descriptive name for object An appropriate prefix and description of purpose Ex:  lblMessage – a label that displays a message   Do not change the form name…your program won’t work!   Label lbl Message Menu mnu Exit RadioButton rad On Button btn Calculate

Chapter 3.1

  • 1.
    Visual Basic .NET Windows application An interface with visual objects for communicating with the user Buttons, check boxes and text boxes   Object-oriented programming language Performing tasks with objects... The user interacts with the program Event-driven application Program runs when the user does something An event can occur when the user interacts with an object…clicking a button
  • 2.
    Visual Basic .NETDesign Window Solution Explorer window Toolbox Design window Properties window
  • 3.
    Visual Basic .NET Objects Form A graphical object that contains a title bar and close buttons The main work space for your program Text property – what is displayed in its title bar   Label Displays text that cannot be changed by the user Text property – the text displayed in the label Font property – font, style and size of text TextAlign property – alignment of text in the label MainMenu A list of options in menu form Text property – will display the menu name
  • 4.
    Naming Objects Nameproperty Descriptive name for object An appropriate prefix and description of purpose Ex: lblMessage – a label that displays a message   Do not change the form name…your program won’t work!   Label lbl Message Menu mnu Exit RadioButton rad On Button btn Calculate