Page 71 - Open Soource Technologies 304.indd
P. 71

Unit 3: Understanding Controls and Control Events
































                                              Figure 3.19: PictureBox.

               3.5 Forms Properties

               Below are the properties of a Windows Form. Properties displayed below are categorized as seen
               in the properties window.

                 Appearance Properties   Description
                 BackColor               Gets/Sets the background color for the form
                 BackgroundImage         Get/Sets the background image in the form

                 Cursor                  Gets/Sets the cursor to be displayed when the user moves the
                                         mouseover the form

                 Font                    Gets/Sets the font for the form
                 Fore Color              Gets/Sets the foreground color of the form
                 Form BorderStyle        Gets/Sets the border style of the form
                 RightToLeft             Gets/Sets the value indicating if the alignment of the control’s
                                         elements is reversed to support right-to-left fonts
                 Text                    Gets/Sets the text associated with this form
                 Behavior Properties     Description

                 Allow Drop              Indicates if the form can accept data that the user drags and drops
                                         into it
                 Context Menu            Gets/Sets the shortcut menu for the form




                                      LOVELY PROFESSIONAL UNIVERSITY                         65
   66   67   68   69   70   71   72   73   74   75   76