Keep data stored in text box when button is pushed

S

Steve Coward

My question is how do I keep data stored when it is
recieved after pushing another button. The way my program
is set up is I have 2 text boxes and 2 buttons. Text box
1 gets its data when button 1 is pressed and text box 2
gets its data when button 2 is pressed. The problem I am
having is when I push button 1, I recieve data in text box
1 but I would like to keep that data and when I push
button 2 in the form, I would like to recieve data in text
box 2. What is going on with my program is when I push
button 2, the other data in the text box 1 goes to 0 and
then text box 2 is updated. What should I do, a special
program to solve this problem or is there something in
properties that I can select or input.
Thanks,
Steve
 
J

Jonathan Parminter

Hi Steve,
please post the code for these buttons ... if code is
extensive, just post the lines that set values for the
textboxes.

Jonathan
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top