Reference no: EM132177406
Visual basic
Power controls
This lab has you setting controls via the property window and by code.
Create a project called powerControls.
Name the form exampleControls.vb
Find and icon: search the internet or your hard drive for ico files and use one. Add it your My Project folder. Set the form icon property to your icon.
Create a group box titled grpLabelTextbox and set the text property to "Explore Labels and Textboxes'
From the properties set the backcolor to White
Use code to set the backColor
grpLabelTextbox.BackColor = Color.LightGreen
Create a button called btnChangeStuff
Use this to implement the code request for grpLabelTextbox
When the button is clicked you will write code to change properties of the groupbox, label, textbox and
Set the following property
Text to Press
For the button use code to change
Visible to false
Create a label called lblDisplayStuff
Set the following properties
text to of the "Display changes"
backcolor to GreyText
FlatStyle to Flat
Use code to change lblDisplayStuff
Text to "changes made"
.FlatStyle = FlatStyle.Standard
Backcolor to a blue color
ForeColor to Color.Blue
Create a textbox called txtDisplayStuff
Set the following properties
Text to "displaying stuff"
Size width to 200 and height to 40
textAlign to right
ReadOnly to True
Use code to change txtDisplayStuff
ReadOnly = False
TextAlign = HorizontalAlignment.Center
Multiline = True
Save your work, Zip your project folder and submit.