ok so here we go this my first attempt at a tut on coding dont be a dick.
open up your Microsoft Visual Studios - either Professional or Express (you can get express from MSDN for free)
I am using professional - so here it is guys
included is the source with commets for help just pm me and i will or post in this thread.
Step 1: Start a new Project chose VB.Net for your language if the pc has not already done so...
Step 2: Rename the project file : we will call our project Add2Numbers.vb note: (".vb" stands for visual basic file)
Step 3: On the rigth double click on form1.vb that will open the form.
Step 4: open the tool bar and drag one label, two buttons and two text boxes onto the form place them where you like.
Step 5: name of the the items with real names I like to use names like : firstNumberTextBox and secondNumberTextBox. note: notice the first letter of my names are lowercase this is called camel case this is part of convention in codeing you will also see the FirstLetterTextBox this is called Pascal Case for the way it look at who created the name way back when but that is something if you want to know you can use google for.
Step 6: Hit F7 this will take you to the code behind, only do this once you have name the items look at my souce for the item names but you can also guess that its the numbers textboxs and the button.
Step 7: Now create two varibales to hold a number i recomend decimals to prevent user error.
look at the source included for these but here is an example
Dim FirstNumber as Decimal = 0 always initiliaze a varible be it string or numeric "YOU CANNOT TRUST A PC TO DO YOUR JOB.
Step 8: Now that you have the variables names and the Gui items named your going to need to take textdata a "string" and PARSE THE DATA ( this means to convert) there are examples on MSDN and in my source.
outputLabel.Text = (Decimal.Parse(firstNumberTextBox.Text) + _
Decimal.Parse(secondNumberTextBox.Text)).ToString ' the underscore contiues lines of code
above is an example of the data being parsed from one text box and another and also doing the adding.
Step 9: now that the data calculated the data must be output this is where the label we created comes into play.
the final step is to output
here is an example : outputLabel.text = variableNamedForFinalCalcOfTwoNumbers
OK THIS WAS DONE FROM MY HEAD WITHOUT LOOKING AT THE SOUCE LIKE IF IT WERE A TEST FROM SCHOOL LOL!
Sorry about the caps please tell me if I missed anything and I'll fix it but im sure i didnt im adding the souce file now enjoy guys
http://www.mediafire.com/?h2eswc4b8pvgmi5 PLEASE LET ME KNOW IF THAT DONT WORK
open up your Microsoft Visual Studios - either Professional or Express (you can get express from MSDN for free)
I am using professional - so here it is guys
included is the source with commets for help just pm me and i will or post in this thread.
Step 1: Start a new Project chose VB.Net for your language if the pc has not already done so...
Step 2: Rename the project file : we will call our project Add2Numbers.vb note: (".vb" stands for visual basic file)
Step 3: On the rigth double click on form1.vb that will open the form.
Step 4: open the tool bar and drag one label, two buttons and two text boxes onto the form place them where you like.
Step 5: name of the the items with real names I like to use names like : firstNumberTextBox and secondNumberTextBox. note: notice the first letter of my names are lowercase this is called camel case this is part of convention in codeing you will also see the FirstLetterTextBox this is called Pascal Case for the way it look at who created the name way back when but that is something if you want to know you can use google for.
Step 6: Hit F7 this will take you to the code behind, only do this once you have name the items look at my souce for the item names but you can also guess that its the numbers textboxs and the button.
Step 7: Now create two varibales to hold a number i recomend decimals to prevent user error.
look at the source included for these but here is an example
Dim FirstNumber as Decimal = 0 always initiliaze a varible be it string or numeric "YOU CANNOT TRUST A PC TO DO YOUR JOB.
Step 8: Now that you have the variables names and the Gui items named your going to need to take textdata a "string" and PARSE THE DATA ( this means to convert) there are examples on MSDN and in my source.
outputLabel.Text = (Decimal.Parse(firstNumberTextBox.Text) + _
Decimal.Parse(secondNumberTextBox.Text)).ToString ' the underscore contiues lines of code
above is an example of the data being parsed from one text box and another and also doing the adding.
Step 9: now that the data calculated the data must be output this is where the label we created comes into play.
the final step is to output
here is an example : outputLabel.text = variableNamedForFinalCalcOfTwoNumbers
OK THIS WAS DONE FROM MY HEAD WITHOUT LOOKING AT THE SOUCE LIKE IF IT WERE A TEST FROM SCHOOL LOL!
Sorry about the caps please tell me if I missed anything and I'll fix it but im sure i didnt im adding the souce file now enjoy guys
http://www.mediafire.com/?h2eswc4b8pvgmi5 PLEASE LET ME KNOW IF THAT DONT WORK




![[Image: Xtddh8V.png]](https://i.imgur.com/Xtddh8V.png)