Hey,
Yeah no problem... i will leave all the controls named to the default name so it more clear. If you need any help with the code don't hestiate to ask.
The form just has 5 controls MPH Textbox.... Hours Textbox..... List Box.... Total TextBox and a button.
CODE
Public Class Form1
Private Sub Button1_Click(ByVal Sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim MPH As Integer
Dim Hours As Integer
Dim I As Integer = 0
Dim Miles As Integer
Dim Total As Integer
MPH = Int32.Parse(TextBox1.Text)
Hours = Int32.Parse(TextBox2.Text)
ListBox1.Items.Clear()
Do Until I = Hours
Miles += MPH
ListBox1.Items.Add(I + 1 & " - " & Miles)
i += 1
Loop
Total = MPH * Hours
TextBox3.Text = Total
End Sub
End Class
If it fails just check the syntax and spellings as i had to retype it as i did the program on my other PC.
If you have question dont hesiate to ask.
Cheers,
Tommyflint
This post has been edited by tommyflint: 25 Apr, 2009 - 03:14 PM