Wednesday, July 17, 2019

Visual Basic Toolbox Controls

The toolbox Controls The Toolbox window holds all of the locks available to your VB. interlock programs. Basic Controls First, lets revolve around on the basic withstands that are employ in most programs. These controls are so essential that VB. NET would be utterly useless without them 1- get-up-and-go The going control is a key ingredient for an efficacious user interface. Buttons are normally open on the main form of a program and are used to consummate tasks or bring up spare forms for the user. historied Properties Important Properties of Button1 from PropertiesWindow appearing demeanor division of the propertieswindowallows us to make changes to the demeanorof the Button. With the help of BackColorandBackground Imageproperties we apprise lap a minimise knowledge dissimulationand a background image to the sack. We nail down the font color and font dah for the textbook that appears on dismissal withForeColorand the compositors case post. We change the ap pearancestyle of the button with theFlatStyle belongings. We shag change the text that appears on button with theText shoes and with theTextAlignproperty we can piece where on the button the text should appear from a predefined stage of options. BehaviorNotable Behavior properties of the Button are theEnabledand visible(a)properties. The Enabled property is unbending to True by default which makes the button enabled and mintting itsproperty toFalse makes the button Disabled. With the visible(a) property we can make the Button seeable or inconspicuous. The default apprize is set to True and to make the button Invisible set its property toFalse. Layout With theLocationproperty you can change the location of the button. With the coat property you can set the surface of the button. 2- CheckBox The CheckBox control is a Boolean control that can be set to sure or faithlessly.When the controls note re time value is true, the come off box get out be filled with a small x. N otable Properties Important properties of theCheckBoxin the demeanor contribution of the propertieswindoware Appearance oversight value is Normal. go under the value to Button if you want theCheckBoxto bedisplayedas a Button. BackgroundImage Used to set abackground imagefor the crock upbox. CheckAlign Used to set the concurrencefor theCheckBoxfrom a predefined heel. Checked default on value is False, set it to True 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. call for the value from a predefined list to set the style of thecheckbox. 3- enunciate The Label control is used to display unmoving labels on a form that mostly dont change eyepatch a program is running. The labels are ordinarily used alongside TextBox controls to describe the reading sto red in the TextBox 4- LinkLabel The Link Label control is a specialized version of the Label control, which includes an meshwork hyperlink so that when you click the label, the link is candid in the default Web web browser (or e-mail program). RadioButton The RadioButton control is useless by itself because a mouse click can unaccompanied set the value to true, not false (as is the case with CheckBox). RadioButton controls are only useful if two or more(prenominal) are placed together on a form or other container (such as a GroupBox), because they reflect a six-fold-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 the concurrencefor 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 stimulant and text output control clear of displaying multiple lines of text with automatic articulate wrapping.Some Notable Properties Some important properties in the Behavior section ofthe PropertiesWindowforTextBoxes. Enabled Default value is True. To disable,set theproperty toFalse. Multiline screen background thisproperty toTrue makes the TextBox multiline which allows to accept multiple lines of text. Default value is False. PasswordChar Used to set the password 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 any text. Visible Defa ult value is True. To hide it set theproperty toFalse. Important properties in theAppearancesection TextAlign Allows to align the text from troika possibleoptions. The default value is left hand 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 ca-ca fouroptionswiththis property. Optionsare are None, Horizontal, unsloped and Both. Depending on the size of the TextBox anyone of those can be used

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.