Maybe not the right place to aske this, but a newbee (me) needs help.
i trying to input a number into a textbox, so i can make a series of calculations. in the old days of basic i just jused nrstring=val(in put) , but life isnt as easy anymore. I brewed something together as a test, but it failes on me.
Public Class Form1
Private Sub Form1_Load(ByVa l sender As System.Object, ByVal e As System.EventArg s) Handles MyBase.Load
End Sub
Private Sub TextBox2_TextCh anged(ByVal sender As System.Object, ByVal e As System.EventArg s) Handles output.TextChan ged
End Sub
Private Sub Label1_Click(By Val sender As System.Object, ByVal e As System.EventArg s) Handles Text1.Click
End Sub
Private Sub Button1_Click_1 (ByVal sender As System.Object, ByVal e As System.EventArg s) Handles Button1.Click
Dim volume As Integer
Dim radius As Integer
radius = CDbl("TextBox1" )
volume = (4 / 3) * 3.14 * (radius * radius * radius)
MsgBox(radius)
End Sub
End Class
this is the code.
Any help, will get you praised into heaven :-D.
Tnxx in advance.
i trying to input a number into a textbox, so i can make a series of calculations. in the old days of basic i just jused nrstring=val(in put) , but life isnt as easy anymore. I brewed something together as a test, but it failes on me.
Public Class Form1
Private Sub Form1_Load(ByVa l sender As System.Object, ByVal e As System.EventArg s) Handles MyBase.Load
End Sub
Private Sub TextBox2_TextCh anged(ByVal sender As System.Object, ByVal e As System.EventArg s) Handles output.TextChan ged
End Sub
Private Sub Label1_Click(By Val sender As System.Object, ByVal e As System.EventArg s) Handles Text1.Click
End Sub
Private Sub Button1_Click_1 (ByVal sender As System.Object, ByVal e As System.EventArg s) Handles Button1.Click
Dim volume As Integer
Dim radius As Integer
radius = CDbl("TextBox1" )
volume = (4 / 3) * 3.14 * (radius * radius * radius)
MsgBox(radius)
End Sub
End Class
this is the code.
Any help, will get you praised into heaven :-D.
Tnxx in advance.
Comment