All programs written in .NET require you
to create projects.
To create a new project,
click File > New > Project. A window resembling the
following appears:

Select a Project Type (Basic, C++, etc.)
and a Template from the right hand pane.
Give the project a name and verify that
the location to be in your My Documents folder - V:\My Documents\Visual
Studio Project.
Click the OK button.
The first time you create a project,
Visual Studio .NET select to install it in the folder Visual Studio Project
in your My Documents folder. This allow each of your projects to be a folder within C:\My
Document\Visual Studio Projects when you create a new project.
1.
Add a button,
and a picturebox.
(use the “toolbox” on the left side of the
screen to add these).
2.
Change the
text on the button to “ON”
3.
Put an image
in the picturebox (something like a turned on light
bulb)
4.
Add the
following code to the button so that the light bulb picture will appear and
disappear when you click on the button.
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
PictureBox1.Visible = Not PictureBox1.Visible
End Sub
5. Your mission is to make the text on the
button change to “ON” when the picture is visible and “OFF” when the picture is
not visible.
Change the code in the Button1_Click Sub
to do this.
Print out and turn in your source code and
a screenshot of the running application with the light off and with the light
on.