-
July 2nd, 2014, 12:27 PM
#1
VB 2008 - Calculate values in multiple textboxes without using button click event
I would like my program to calculate values in multiple textboxes as I insert them to the textboxes(without using a button click event). As an example I have attached a simple form with 4 textboxes. The last textbox would show the result of the amounts inserted in textbox 1,2 and 3. As shown in the attached image, it would calculate the following: textbox1 -textbox2 - textbox3 = textbox4. It is simple using a button but I can´t figure out how to do it without buttons.
-
July 2nd, 2014, 03:41 PM
#2
Re: VB 2008 - Calculate values in multiple textboxes without using button click event
you didn't include anything, but it should be simple. You don't say what you want to do, except subtract 2 tb's from the first one and put it in the 4th one.
-
July 6th, 2014, 12:38 PM
#3
Re: VB 2008 - Calculate values in multiple textboxes without using button click event
You can place code in the change event of the text boxes or perhaps just the last text box, or use a timer or other depending on what you want to do.
Also note that VB2008 is not VB6.
I will move this to the VB.Net section where questions related to VB versions later than VB6 belong.
Always use [code][/code] tags when posting code.
-
July 7th, 2014, 03:49 AM
#4
Re: VB 2008 - Calculate values in multiple textboxes without using button click event
Thanks for your replies. I am really new at this so I´m not sure what to do. I will attach an image of a simple example so that you can have an idea of what I need.
Attachment 32767
-
July 8th, 2014, 06:36 PM
#5
Re: VB 2008 - Calculate values in multiple textboxes without using button click event
not a valid link. just upload the image directly (the square w/image inside in Go Advanced)
-
July 12th, 2014, 09:50 AM
#6
Re: VB 2008 - Calculate values in multiple textboxes without using button click event
-
July 12th, 2014, 01:11 PM
#7
Re: VB 2008 - Calculate values in multiple textboxes without using button click event
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|