Math Question

Windows Application:

Can someone please show me a math example.  Here is what I am trying to perform:

Onload Event, Textbox1.text will contain a numerical value.  Lets say, the value is "3"

I want for TextBox2.Text to = value of TextBox1.test + 1

Thanks,
CR
LVL 2
chrisryhalAsked:
Who is Participating?
 
RonaldBiemansConnect With a Mentor Commented:
textbox2.text = cint(textbox1.text) + 1
0
 
RonaldBiemansCommented:
if you have option strict on  then

        TextBox2.Text = CStr(CInt(TextBox1.Text) + 1)
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.