• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 203
  • Last Modified:

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
0
chrisryhal
Asked:
chrisryhal
  • 2
1 Solution
 
RonaldBiemansCommented:
textbox2.text = cint(textbox1.text) + 1
0
 
RonaldBiemansCommented:
if you have option strict on  then

        TextBox2.Text = CStr(CInt(TextBox1.Text) + 1)
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now