Text in results box

10 pts.
Tags:
Visual Basic
If I created a simple calculator in VB, and instead of the simple answer I wanted text and the answer, forinstance 5 plus 5 equals 10, or 5 minus 5 equals 0, how do I add that to my coding?

Answer Wiki

Thanks. We'll let you know when a new response is added.

We will appreciate if you provide with your existing code. As this will help us better in providing you with accurate solutions.

However, I am still writing the piece of code. I hope this will suffice your requirement

If your answer variable finally goes to textbox with name textbox1

than code will be

textbox1.text = “input1″ & “+”& “input2″ & “=” & answer

Regards,
Sarfaraz
<a href=”http://findsarfaraz.blogspot.com”>Microsoft Excel and VBA help</a>

Discuss This Question: 1  Reply

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • carlosdl
    You will have to check what operation was performed, and if more than one operation is possible, the answer will not be that easy. You did not specify what is your specific doubt... Do you need help with the logic ? or with something specific to the VB language ?
    69,920 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following