Friday, February 27, 2009

Week 3

This week we had to do the Chapter 4 Guided Program Development task from the Visual Basic book called Digital Downloads on page 254. It gives step-by-step instructions on creating the project.
New things looked at this week, Option Strict on (stops automatic conversion of variables), Declaring a constant variable (doesn’t change) and concatenation (&) (joins different values into a single string).
After completing the Digital Downloads program we had to create one called Concert tickets which is found at the end of Chapter 4 in the Programming Assignments on page 279. This program is very similar to the Digital Downloads program but we weren’t guided through step-by-step for this one, we had to create the code ourselves.

Friday, February 20, 2009

Week 2

The Visual Basic book arrives!!! – Site that compliments book: scsite.com/vb2008
This week we looked at more tools we can use in visual studio including list boxes and check boxes, and the different events we can use for them such as load, close, click, double click, checked, index changed.
We also looked at Declaring a variable, the different types of variables, such as strings, integers, decimal, Boolean and date, and the scope of a variable (where it can be referenced in the code). We had to create a program that counted every time a user clicked the mouse and display this in a label. We did this by declaring an integer variable called intMouseClicks in the Declarations area of the code and then in the click event of the form we had to add 1 to this variable with this code: intMouseClicks = intMouseClicks + 1. We then converted this integer to a string and told the text property of the label that it equals the variable: lblMouseClicks.Text = intMouseClicks.ToString.
Next we had to create another program that worked as a simple calculator. The user was given two text boxes where they could enter a number in each and then press a button which would calculate the result and display it in a label. We did this for addition, multiplication, subtraction and division.

Sunday, February 15, 2009

Visual Basic Links

Download Visual Basic Express -Download Visual Basic 2008 Express Edition here!!

View information and samples on Visual Basic:
Visual Basic Development Center
Visual Basic Samples

Find valuable resources on Visual Basic:
Visual Basic Resource Center

Friday, February 13, 2009

Week 1

This week we began using Visual Studio. We were shown a few of the basic tools that you can use.
Our first project we used labels, text boxes, buttons and a combo box, and through code we had to enter text from the text box and add it to the list in the combo box, also take text from a text box and display it in a label.
In the second project we also used picture boxes. We had to display the picture that is clicked on in another picture box.
The third project this week we had to allow the user to enter their contact information and then have it all display in labels when they click the submit button, and all the information to clear when they click the clear buton.