Page 82 - TCS ICT Book 8
P. 82

The City School  2021-2022




             10. The program window will appear and if you click the Say Hello World button, the
                label’s text changes to Hello world! Exactly as we have programmed.


























             Each time you test your program by clicking the Start Debugging button, an

             application executable file is created in ...\Projects\[project name]\[project name]\
             bin\Debug. For example, for the First VB Form project, the .exe file can be found

             under ...\Projects\HelloWorldApplication\HelloWorldApplication\bin\Debug\
             HelloWorldApplication.exe.


             4.5.  Basic GUI Controls in Visual Basic



                  Button

             It is used as a standard Windows Button. In most cases, the Button Control is used to

             generate a click event,
             A    Label


             It is used to display some informative text on the GUI which is not changed during

             runtime.


                  Radio Button


             Radio Button is one of the popular ways of limiting the user to pick just one option.


                 Checkbox


             Checkboxes are similar to radio buttons in the way that they are also used in groups,
             however, a user can select more than one item in the group.









                                                                                                                82
   77   78   79   80   81   82   83   84   85   86   87