o
k
q
u
e
s
t
i
o
n
s
.
c
o
m

button clicks and running total in textbox -

Hi everyone. I'm a relative newbie, so be gentle! I'm using VB9 and I have a form to make for my job. Let's say I have 4 buttons on my form, each with an assigned value that displays in a textbox on click. Button 1 has a value of 5; button 2 has a value of 10; button 3 has a value of 15; button 4 has a value of 20. If i click button 1, i can get the number 5 to show up in the textbox. What I need now is for button 2 to be added to button 1, and display 15 in the textbox. Then if i click button 1 again, I need to see a 20 in the textbox. Basically, I just need the successive button clicks to add their assigned values to the total in the textbox. Please forgive me if this is posted in the wrong place. Thanks in advance.
Ed

 

button clicks and running total in textbox -
Hi everyone. I'm a relative newbie, so be gentle! I'm using VB9 and I have a form to make for my job. Let's say I have 4 buttons on my form, each with an assigned value that displays in a textbox on click. Button 1 has a value of 5; button 2 has a value of 10; button 3 has a value of 1


[2008] VB.Net- Need help displaying the total number of Clicks on a Click event -
Can anybody help me? I've added a button to my windows form and I want to have it where every time I click on that button it registers the click and displays the total number clicks in a textbox on the form. Would greatly appreciate it if someone could help me out with this code


Getting the Total from a running total -
I have a running total that runs thru and adds things up for me, it works great but i need the TOTAL of that running total in my group footer, any ideas?? at the moment it just prints it as a normal running total, slowly building up like it should, but how would i use that final


Help with running total of list box entries... -
My program has a textbox that a user inputs a price in a textbox, then that price is put into a list box. I got a running total for the list box, but now I made it possible for the user to delete an entry in the listbox. Now I need the running total to subtract that entry that was de


[ask] about stoping and continuing a function -
i have a problem i want to make a function and in every step there's a pause n then if a push a butto the code is running again go to next step...how to make it.. Code: public function ... step 1 /do some calculation /and then the result input into a textbox or a listbo


How to do ...... with textBox -
Hello to all ! I'm a vb programmer and writing a word processor. Now I want to show some information about any document when a user Clicks on Document Statistics on Tools Menu. Thus I want to know How can I have the information of the following from a text Box :


Lottery Program using Listboxes -
Hi all, I am creating a lotter program with a series of Listboxes. First the user pics how many Tickets they wanna buy. Then they press a CMD button and in another listbox the users numbers are given to him/her. Then the user clicks on another CMD button that shows the 6 winning num


running total fields in crystal report -
i am using crsytal report and vb 6.0 i used running total fields in my report for calculaytion of total amount per page i have used crviewer and designer to make this report .i want to display this total amount in words (i have the procedure for conversion ).main problem is i am not a


[2008] Add coma in a text box -
I have a text box which contains this text Main Balance,Received,Direct Purchases,Rental Balance,Jackpot Balance,Direct Referrals,Rented Referrals,Total Clicks,Total Clicks from Referrals 6.78,2.10,28.22,0.00,0.00,9,94,409,5157 and i want to do is add a comma after the text &qu


Listbox stuff -
Hi all For an assignment I've got to get the weight and add-up the length, breadth, and height of a parcel and put them all in a listbox. I've got to have running total of all the weight of the parcels that are in the listbox. could anyone help?? I'm really stuck with the cod


Help a beginner -
Hi, I am reproducing a paper document in ASP. Its a form with 82 questions with a submit button which writes into a .TXT file. There are checkboxes, radiobuttons and textboxes. All that is finished and working. I would now need for one of the textbox (Company number) a sea


Textbox question -
Ok here's the deal: I have a textbox and a command button, and after entering something in the textbox the user clicks the command button. I want only letters to be allowed to be entered - no spaces, numbers, or other symbols. Now, I did disable all the numbers and other symbols so the


I cant calculate the Total Amount ! -
Dear Friends, I have written this code to get the Total Amount from the "InvAmount" field and show the same In a textbox (txtTotal). But whenever I click on the command button (cmdTotal), the program hangs, It doesn't give any error message. What could be the problem? P


listview calculations -
Hi guys, I have a listview with 2 columns which are populated from 2 user input textboxes. The 1st column is the item description, 2nd column is the cost of the item. I have a textbox that is set up to show the total, when I press a button i want the second column to be added up a


InputBox! -
I know I would have definitely got the answer to this post had I searched this forum but due to shortage of time, I am directly posting my question! Sorry for the same! Selecting an item in a ListBox & then clicking a CommandButton invokes an InputBox whose default value is the


Show running total -
Back again. My previous question returned some useful code but I still couldn't get it to run properly so I made some changes to the form and hey presto! its looking a lot better already. Code is If optPaintA = true then txtPaintCost = val(lblPaintA) end if this is rep


how to format textbox -
hi i am having problem in formating textbox. i have set textbox dataformat to NUMBER. i add number entered in 3 textvoxes and display the total in 4th textbox. if the input in the textboxes are.....12,345,12,345,12,345 (addtion is done in textbox lost focus events). it displays the


Question about textboxes, cursor location. -
I've got a form with several textboxes on it. Inside each textbox is a person's name - extracted from a database. If the user of my program wants to erase a person from the database, I want them to click the textbox that their name is in, then click on the "Delete" button t


Setting BackColor -
I want a textbox to switch between Button Face and White when a user clicks on a textbox. How can I set a textbox to Button Face rather than a preset color in the code?


javascript form -
this shouldn't be too hard, but I want to have a textbox, and a button and when someone clicks that button, i want it to goto /files/(number in textbox).htm how can I do this thanks, Dimava


Textbox on the fly.... -
you might put the textbox in a div and hide it until the user clicks the button? (that doesn't work in netscape though, I'm not sure if you can add a textbox using InnerHTML, might be worth a try) hope this helped


How to display a grand total from a text file -
Hi there, i have a list of 5 names and 5 amounts contributed saved on a text file called: "G:\mailinglist.txt" Iv created a button and a textbox beside it. Basically i just want to be able to select the button and the values from the text file are added to display a gra


Crystal XI Running Total Problem -
Hey all, I am getting a weird totals and I am not sure where the figures are even coming from. I am using a conditioned Running Total for a Accounts receivable aging report. I have a formula field to determine the age of the record and then depending on that age I categorize how old t


VB.NET Total the values in a multiline textbox -
Greetings. Here's the deal, I'm writing a program for the Systems Analysts and I've run into a dilema. I've gotten the initial part of the algorithm, including the loop, to work, however, I need a way to add each line of the multiline output together. An example output would


Running a command when the user clicks the close button on the window (X) -
Hi I am sure this is very simple I just can't find it anywhere. How would I go about running the code "End" when the user clicks on the "X" (close button) at the top right of my VB application. When they hit the X on my child window I need it to close the Exe. I


TextBox and Blinking Cursor Question -
Hi, When you click into a textbox on a form a blicking cursor appears. Sometimes at the begining of the text, in the middle or at the end depending where the mouse clicks at that moment in time. Can this be altered so when a user tabs into or clicks into a textbox it automatic


Running Total Field -
Hi ,all How to create a running total field for each page of paper? I mean how to create a running total field that will reset a value when a page is changed. I have try to find out in Crystal Help, google but i havent found any thread. Any ideas? Thanks for advance


Looping Code -
An application allows the user to determine the total amount of expenses. I want to continue to allow the user to enter expenses until they choose to stop (such as clicking on the Cancel button in an InputBox). Once the user clicks on the Cancel button, display the total expenses in th


Run Files -
Hi, I am having problems running a file. What I have now is a textbox which shows some batch commands. I want to run the commands in the textbox upon pressing a run button. So how do I program the run button to make it capture the text from the textbox and run it? I couldn't even


Having trouble getting this loan calculator to work -
Hello everyone, this is my first time posting on a bulletin board, so forgive me if I am posting in the wrong place. I am taking a class on Visual Basic and I am using the 2003 version of VB.net. Here is the scenario: I am trying to write the code to process the users input in a lo


Need Help with KEYPRESS tally -
Hey gang, I need some help. Being a beginner in VB I want to create a form such that when I press the "number 1" on the numeric keypad that it will add and tally in a given textbox. To keep our demonstration simple, lets say I have 1textbox, 1 label, and 2 Commandbuttons


Detecting Show Desktop -
I have an application that is running as an AppBar using the SHAppBarMessage API. It works great except when a user clicks the show desktop button. This causes my application to go away and it will not show up again until the user clicks another application. Is there a way to detect


new TextBox -
I'd like to add a button to a form, when the user clicks on it, a new TextBox appears. can this be done?


sending values to main form from other forms -
I declared a public variable in my main form(startup form). then the user clicks on a button and a new form with a textbox appears. the user enters some string in the textbox and clicks a button to close the form. Now i have to show that string in the main form. how? I cant write for


Detect change to selection in textbox -
Hi, I want to be able to know when the selection of text in my textbox changes so that I can enable or disable the copy button. Basically, when the event fires, I want to do a check to see if the selected text does not equal nothing so that I can enable the copy button so the sel


keeping a running total -
how do you set a text box to keep a running total of a the total value of the numbers in a couple of other text boxes.


Text Box Values = 100 -
Here is my problem. I have two textboxes whose values are each controlled by spinner boxes. I need the value of these two boxes to always add to 100(%). If the user clicks the spinner for TextBox1 and sets the value at 85%, I need the value in TextBox 2 to automatically adjust to 15%.


textbox with scroll bar but only with one value -
i need a one line textbox but with scrolls up and down that makes the value of the text inside the textbox increment and decrement, like an interest rate that goes up with .1 up whenever the user clicks on the up scroll and goes down with .1 when he clicks on the scroll down. What c


VERY Basic HTML help. -
Hey. I know next to nothing about HTML and here is what I need if anybody could please help me. I have a textbox, and a button. When the user clicks the button I want to load.... "http://www.google.co.uk/search?hl=en&q=" And the textbox's text. Simple enough. Any


Keeping a running tally -
hey everybody, have to recreate the WaWa hoagie program. If we do more than 1 form then we get extra credit (which I'm doing). I was wondering how to keep a running tally of the cost. How would I declare it? An example is that you choose your size, lets say small, so the total w