Math Question

Posted on 2005-04-25
Last Modified: 2010-05-18
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

Question by:chrisryhal
    LVL 25

    Accepted Solution

    textbox2.text = cint(textbox1.text) + 1
    LVL 25

    Expert Comment

    if you have option strict on  then

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

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Find Ransomware Secrets With All-Source Analysis

    Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

    I'm currently working for a company where I have to upgrade over 50 VB6 programs to VB.NET 2008.  So far I'm about half way through, and I've learned quite a few tricks that drastically improve the performance of VB.NET apps. Because there are a…
    Introduction When many people think of the WebBrowser ( control, they immediately think of a control which allows the viewing and navigation of web pages. While this is true, it's a…
    This video discusses moving either the default database or any database to a new volume.
    In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor ( If you're interested in additional methods for monitoring bandwidt…

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    14 Experts available now in Live!

    Get 1:1 Help Now