User Profile
Collapse
-
Indeed, it works fine now. I started from scratch, and pasted your code in it. I guess something was wrong with the surounding code, or my pc thought it was a monday. thank you thank you thank you a thousand times. You my friend, have a free ticket to heaven.... -
The Volume calculation is just there as part of a larger whole.It can be ignored. The trouble is, the prog throws up at the Val(TextBox1.Te xt). And i have no idea why.
One praise for you though....Leave a comment:
-
ok, that looked kind of messy.
The lines that should be the problem are:
- 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 = Val(TextBox1.Te xt)
- volume = (4 / 3) * 3.14 * (radius * radius * radius)
- MsgBox(radius)
- End Sub...Leave a comment:
-
help a newbee (go to heaven). calculation problem with a textbox.
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)...
No activity results to display
Show More
Leave a comment: