back
Converting Miles to Kilometers

Up to now we have been using labels to display the results of different calcuations. It is also possible to use text boxes to do the same thing. Create a new project with two text boxes as shown.


  • Make sure you name the two text boxes as in the image.
  • Double click the command button
  • Type: txtConvKM.Text = txtMiles / 0.62
  • Run the program