gday people, im not a great coder but i can do simple things like this:P
we will make a couple of programs in this tutorial and before you start you need this
http://msdn.microsoft.com/vstudio/exoress.vb.download
d/l and install yadada you know the deal
Overview-
Calculator-
lets get started, open visual basic express.
Open a new project (ctrl+n)
Select windows application
Add 2 Textboxes, 4 Buttons and 2 Labels to a form and arrange like so (see below)
Now add another label (see below)
Double click on the "Add" button to open the ide and type
Repeat the same command except change the + operator with the appropriate operatorCode:Label3.Text="Answer" & _ Str(Val(TextBox1.Text)+Val(Val(TextBox2.Text)))
remeber, - for subtract, / for divide and * for multiply.if your really lazy here ill include it
Code:Label3.Text="Answer" & _ Str(Val(TextBox1.Text)-Val(Val(TextBox2.Text)))Code:Label3.Text="Answer" & _ Str(Val(TextBox1.Text)*Val(Val(TextBox2.Text)))But your program doesnt have a title "Calculator" so you change the text value of the form property to CalculatorCode:Label3.Text="Answer" & _ Str(Val(TextBox1.Text)/Val(Val(TextBox2.Text)))
Run the Program and test it out
you should get something like this
Ill add some more programs to make in here later im hungry atm though
well done any problems just say


LinkBack URL
About LinkBacks




Reply With Quote
Bookmarks