.

Thursday, March 7, 2019

Visual Basic Toolbox Controls

The tool cabinet Controls The Toolbox windowpane holds all of the dominations available to your VB. NET programs. Basic Controls First, lets focus on the basic stamp downs that argon utilize in close to programs. These controls are so essential that VB. NET would be utterly inconstant without them 1- Button The Button control is a key ingredient for an hard-hitting user interface. Buttons are normally found on the main variation of a program and are used to perform tasks or claim up additional forms for the user. Notable Properties Copernican Properties of Button1 from Propertieswindowpane AppearanceAppearancesection of the propertieswindowallows us to make potpourris to theappearanceof the Button. With the help of BackColorandBackground Imageproperties we asshole tempered a background colorand a background experience to the get-up-and-go. We influence the font color and font style for the school textbook that appears on button withForeColorand theFont home. We chan ge the appearancestyle of the button with theFlatStyleproperty. We peck change the text that appears on button with theTextproperty and with theTextAlignproperty we stinkpot set where on the button the text should appear from a predefined set of options. BehaviorNotable Behavior properties of the Button are theEnabledand megascopicproperties. The Enabled property is set to genuine by default which makes the button enabled and setting itsproperty to sham makes the button Disabled. With the Visible property we can make the Button Visible or Invisible. The default prize is set to consecutive and to make the button Invisible set its property toFalse. Layout With theLocationproperty you can change the location of the button. With the Size property you can set the sizing of the button. 2- CheckBox The CheckBox control is a Boolean control that can be set to lawful or false.When the controls look on is true, the hobble box lead be filled with a small x. Notable Properties Importan t properties of theCheckBoxin theAppearancesection of the propertieswindoware Appearance Default value is Normal. Set the value to Button if you hope theCheckBoxto bedisplayedas a Button. BackgroundImage employ to set abackground imagefor thecheckbox. CheckAlign Used to set the colligationfor theCheckBoxfrom a predefined list. Checked Default value is False, set it to consecutive if you want theCheckBoxto bedisplayedas checked. CheckState Default value is Unchecked. Set it to True if you want a check to appear.When set to Indeterminate it displays a check in gray background. FlatStyle Default value isStandard. Select the value from a predefined list to set the style of thecheckbox. 3- Label The Label control is used to display static labels on a form that generally take for grantedt change while a program is running. The labels are commonly used alongside TextBox controls to describe the information sto red in the TextBox 4- LinkLabel The LinkLabel control is a specialized vers ion of the Label control, which includes an Internet hyperlink so that when you come home the label, the link is opened in the default Web browser (or e-mail program). RadioButton The RadioButton control is useless by itself because a mouse click can only set the value to true, not false (as is the case with CheckBox). RadioButton controls are only effective if two or more are fixed together on a form or other container (such as a GroupBox), because they reflect a multiple-choice value as indicated by the selected control, not an individual true/false value. Notable Properties Important properties of the RadioButton in theAppearancesection of the propertieswindoware Appearance Default value is Normal.Set the value to Button if you want the RadioButton to bedisplayedas a Button. BackgroundImage Used to set abackground imagefor the RadioButton. CheckAlign Used to set thealignmentfor the RadioButton from a predefined list. Checked Default value is False, set it to True if you want the RadioButton to bedisplayedas checked. FlatStyle Default value isStandard. Select the value from a predefined list to set the style of the RadioButton. TextBox The TextBox control is a multi-purpose keyboard input and text output control capable of displaying multiple lines of text with automatic develop wrapping.Some Notable Properties Some important properties in the Behavior section ofthe PropertiesWindowforTextBoxes. Enabled Default value is True. To disable,set theproperty toFalse. Multiline Setting thisproperty toTrue makes the TextBox multiline which allows to accept multiple lines of text. Default value is False. PasswordChar Used to set the discussion character. The text displayed in the TextBox will be the character set by the user. Say, if you enter *, the text that is entered in the TextBox is displayed as *. ReadOnly Makes this TextBox readonly.It doesnt allow to enter each text. Visible Default value is True. To hide it set theproperty toFalse. Important properti es in theAppearancesection TextAlign Allows to align the text from three contingentoptions. The default value is left and you can set thealignmentof text to right or center. Scrollbars Allows to add ascrollbarto a Textbox. Very useful when the TextBox is multiline. You have fouroptionswiththis property. Optionsare are None, Horizontal, Vertical and Both. Depending on the size of the TextBox anyone of those can be used

No comments:

Post a Comment