I have been trying to make a calculator in visual basic express editopn 2005 and am having some problems.
After cursing for hours on end I have decided to plea for help.
Obviously you need at least 2-digit numbers and I am trying to do it with buttons. So - I think I need some code and that takes the infornmation out of the textbox and makes that information a variable. I know the code to add the number on the end of this variable and add it to the textbox. I have tried this code (a is the name of my variable)
a = textbox1.text
Where have I gone wrong

Help me!!!
ISantos
if not double.tryparse(textbox1.text,a) then
msgbox("Please enter a valid number")
return
end if
Isabel_v
i'm sorry to say this guys - thanks but I managed to find something trailing through tutorials for hours on end. It is like the first code you gave me but in fact just for the number one the code is
If
TextBox1.Text = "" ThenTextBox1.Text =
"1" Else Dim firstnum As Integer = TextBox1.Text Dim finnum As Integer = firstnum & 1TextBox1.Text = (finnum)
There
Thanks anyway though