
meteora184
Newbie
Sep 2, 2006, 8:46 AM
Post #6 of 13
(441 views)
Shortcut
|
ok first u must add a textbox named textbox1 (this will be where u enter inches/centimeters) then you must add two buttons. one named "btncentinch" (this one goes from centimeters to inches) and another one named "btninchcent" (this one goes from inches to centimeters to inches) lastly add a label called "answer" (this label will show the answer to the formula) then all you do is add this code into the form. Public Class Form1 Private Sub btncentinch_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btncentinch.Click Dim cm As Decimal cm = TextBox1.Text answer.Text = cm * 0.39 End Sub Private Sub btninchcent_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btninchcent.Click Dim inch As Decimal inch = TextBox1.Text answer.Text = inch * 2.54 End Sub End Class
http://www.metoslash.co.nr ^my website^ has lotsa runescape vb source and cheats.
(This post was edited by meteora184 on Sep 2, 2006, 8:49 AM)
|