The calculator is suppose to show how far someone goes for each hour increment (i.e. if they punch in 3 hours, it should show a number for 1 hour, 2 hours and 3 hours; if they punch in 10 hours it should show a number for 1 hour, 2 hours, 3 hours....etc. up to ten hours, etc.) I can't get it to show anything except for the total number of hours traveled and total distance. : ( Any ideas?

P

rivate Sub DistanceButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles DistanceButton.Click Dim speedIsValid As Boolean Dim hoursIsValid As Boolean Dim distanceIsValid As Boolean Dim speed As Double Dim hours As Integer Dim distance As Double speedIsValid = Double.TryParse(SpeedTextBox.Text, speed) hoursIsValid = Integer.TryParse(HoursTextBox.Text, hours) distanceIsValid = Double.TryParse(DistanceTextBox.Text, distance) If speed >= 1 And hours >= 1 Then DistanceTextBox.Text = "Do not use this box." End If 'DistanceTextBox.Text = String.Empty Do For hours = 1 To 24 Next hours ResultsTextBox.Text = hours.ToString Loop ResultsTextBox.Text = ("Vehicle Speed:") + (" ") + SpeedTextBox.Text + (" ") + ("MPH") + (" ") + ("Time Traveled:") + (" ") + HoursTextBox.Text + (" ") + ("hours") + (" ") + ("-------------------------------------------") + ("Total Distance Traveled:") + (" ") + (speed * hours).ToString + (" ") + ("Miles") 'Add loop business after ------ on line 64 and pads 'do like video Ch7 For Nextk End Sub

This post has been edited by **AdamSpeight2008**: 04 November 2011 - 11:36 AM

Reason for edit:: Please remember the codetags