- #1
youngsc
- 3
- 0
Ok I'm just starting to teach myself and I thought I could have at least gotten this part but I'm getting a Conversion from string "" to type 'Double' is not valid. error message.
What's happening when I test it is the second you put anything in the text box it freezes and return the error message above. The larger code will be to take this value and another and divide them. I'm assuming it has to do with the use of double but I'm lost. I would appreciate any help you all could give me. Using VB 2008 btw.
Also, great forum I've been surfing it for a little while now and it's a lot of good info to be had.
Code:
Private Sub StockPricetxt_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles StockPricetxt.TextChanged
Dim StockPricetxt As Double
StockPricetxt = ""
End Sub
What's happening when I test it is the second you put anything in the text box it freezes and return the error message above. The larger code will be to take this value and another and divide them. I'm assuming it has to do with the use of double but I'm lost. I would appreciate any help you all could give me. Using VB 2008 btw.
Also, great forum I've been surfing it for a little while now and it's a lot of good info to be had.