Markissimo
New member
- Joined
- Oct 25, 2008
- Messages
- 3
- Programming Experience
- Beginner
Hey guys, i'm very new on programming at VB.NET and Oriented Objects Programming.. So, i'm trying to make a simple program here and i got some problems and i realized that i don't know how to program by oriented objects =/
So.. I'm new in this community and i would like to know if some good soul would have time and patience to "fix" this program that i made, but got some errors and just programmed by Events
The program just compare the textboxes, for example txtSpeed1 with txtSpeed2, then it put a color on the labels depending on which one is bigger
So Here is the program:
RapidShare: Easy Filehosting
If nobody don't want to waste time with the full program by editing it, so please answer this:
I got an error in this If, it just say "FormatException was unhandled"
I'm asking for it to be a better programmer as i'm young and started now with this language. Thanks since now
So.. I'm new in this community and i would like to know if some good soul would have time and patience to "fix" this program that i made, but got some errors and just programmed by Events
The program just compare the textboxes, for example txtSpeed1 with txtSpeed2, then it put a color on the labels depending on which one is bigger
So Here is the program:
RapidShare: Easy Filehosting
If nobody don't want to waste time with the full program by editing it, so please answer this:
I got an error in this If, it just say "FormatException was unhandled"
VB.NET:
If (Convert.ToInt16(txtAccel1.Text)) < (Convert.ToInt16(txtAccel2.Text)) Then
lblAccel1.ForeColor = Color.Red
lblAccel2.ForeColor = Color.LimeGreen
lblAccel1.Text = txtAccel1.Text
lblAccel2.Text = txtAccel2.Text
ElseIf (Convert.ToInt16(txtAccel1.Text) = Convert.ToInt16(txtAccel2.Text)) Then
lblAccel1.ForeColor = Color.Black
lblAccel2.ForeColor = Color.Black
lblAccel1.Text = txtAccel1.Text
lblAccel2.Text = txtAccel2.Text
ElseIf (Convert.ToInt16(txtAccel1.Text) > Convert.ToInt16(txtAccel2.Text)) Then
lblAccel1.ForeColor = Color.LimeGreen
lblAccel2.ForeColor = Color.Red
lblAccel1.Text = txtAccel1.Text
lblAccel2.Text = txtAccel2.Text
End If
I'm asking for it to be a better programmer as i'm young and started now with this language. Thanks since now
Last edited: