c156Jan2116.notebook
1
January 21, 2016
At pgrocer.net you want to click on CIS156/56 to bring up this page.
c156Jan2116.notebook
2
January 21, 2016
c156Jan2116.notebook
3
January 21, 2016
VB examples.
c156Jan2116.notebook
4
January 21, 2016
I did file andthen NewProject andthis pagecame up.
Be sure to check createdirectory for solution if it isnot already clicked.
Give the project a name and pick a location.
c156Jan2116.notebook
5
January 21, 2016
The project will be namedFirstDayVBS16 and it willbe stored in a holder onthe root of the G drive.
c156Jan2116.notebook
6
January 21, 2016
Here I have the Toolbox,the form, the Solution Explorerand the PropertiesPlease be sure to read chapter1 since it deals with workingwith all the features.
This shows the properties by category the next button showsthem alphabetically.
c156Jan2116.notebook
7
January 21, 2016
Now they are shownalphabetically.
c156Jan2116.notebook
8
January 21, 2016
Properties forthe form.
c156Jan2116.notebook
9
January 21, 2016
The name willbe changed.
c156Jan2116.notebook
10
January 21, 2016
I changed the Text property to Name:
c156Jan2116.notebook
11
January 21, 2016
c156Jan2116.notebook
12
January 21, 2016
c156Jan2116.notebook
13
January 21, 2016
c156Jan2116.notebook
14
January 21, 2016
c156Jan2116.notebook
15
January 21, 2016
I double click on the button to writethe code that will be executed whenthe Click button is clicked when thecode is running.
c156Jan2116.notebook
16
January 21, 2016
This is the click even on btnClick. When it is clicked, the code willbe executed.I am concatenating Hello with the text that is in txtName and assigningthe results to txtHello.text.
c156Jan2116.notebook
17
January 21, 2016
c156Jan2116.notebook
18
January 21, 2016
Download thesetwo examples.
c156Jan2116.notebook
19
January 21, 2016
When I want to create a New ProjectI click on that option when I want toload and use an existing Project Iclick on Open Project.
I can close a solution with Close Solution.
c156Jan2116.notebook
20
January 21, 2016
c156Jan2116.notebook
21
January 21, 2016
Click on the sln to open the project.
c156Jan2116.notebook
22
January 21, 2016
c156Jan2116.notebook
23
January 21, 2016
Note btn can also be cmd
Clear the form.
Close the form.
Basic calculation.
Here I defined three variables and I called them wk to make sure it was clear they were a variable. They have a type of double which allows decimal numbers. I then take the string that came in from the text box and convert in to double. I then assigned the converted text to the variables.I then did the calculation storing the answer in the wkGrossPay.Before putting it out on the form I want to edit it and make it currency.
The wkGrossPay variable is being convert to currency andthen assigned to the text box.
c156Jan2116.notebook
24
January 21, 2016
Second example Note that thereis a picture box that holds an image.
Welcome is in a label called lblWelcome.
c156Jan2116.notebook
25
January 21, 2016
When the program is loaded I do not see Welcome in lblWelcome and the visible property will be set to False. When I click on the button then the visible property gets set to True and a pop up MessageBox says Welcome.
c156Jan2116.notebook
26
January 21, 2016
c156Jan2116.notebook
27
January 21, 2016
c156Jan2116.notebook
28
January 21, 2016
You will get the DreamSpark invitation soon.Here are directions to help you work with it.You can also download the Express versionfor the desktop.