473,472 Members | 2,155 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

adding to textbox

133 New Member
Hi all,

I want to add to a textbox without deleting what is allready there
for example :


CmdClick_1
text1.text = "first"

CmdClick_2
text1.text = "second"

so if you clicked CmdClick_1 and then CmdClick_2 the Textbox
would say firstsecond.

VB6.

Thanks in advanced.
Gobble.
Jan 29 '08 #1
7 1294
debasisdas
8,127 Recognized Expert Expert
Before writing to the textbox u need to store the string already in the textbox. Append the second string to first and then display in textbox.
Jan 29 '08 #2
gobblegob
133 New Member
Before writing to the textbox u need to store the string already in the textbox. Append the second string to first and then display in textbox.
Thats where i get confused when i store them then use them and say i press the same button twice it doesnt add to it
Jan 29 '08 #3
debasisdas
8,127 Recognized Expert Expert
Thats where i get confused when i store them then use them and say i press the same button twice it doesnt add to it
which button you are pressing twice. 1st or the 2nd one.
Jan 29 '08 #4
gobblegob
133 New Member
which button you are pressing twice. 1st or the 2nd one.
i want to be able to pess any button in any order any amount af times
remember i only used 2 buttons as example i intent on using many buttons
Jan 29 '08 #5
Ali Rizwan
925 Contributor
Use this code:

Expand|Select|Wrap|Line Numbers
  1. Private Sub cmd1_Click()
  2.  
  3. Text1.Text=Text1.Text & "First"
  4.  
  5. End Sub
  6.  
  7. Private Sub cmd2_Click()
  8.  
  9. Text1.Text=Text1.Text & "Second"
  10.  
  11. End Sub
Regards
>> ALI <<
Jan 29 '08 #6
gobblegob
133 New Member
Use this code:

Expand|Select|Wrap|Line Numbers
  1. Private Sub cmd1_Click()
  2.  
  3. Text1.Text=Text1.Text & "First"
  4.  
  5. End Sub
  6.  
  7. Private Sub cmd2_Click()
  8.  
  9. Text1.Text=Text1.Text & "Second"
  10.  
  11. End Sub
Regards
>> ALI <<

Thankyou kind sir for your post its exactly what i need to know.
Gobble.
Jan 29 '08 #7
shuvo2k6
68 New Member
Hi all,
Ali Rizwan is right, that is the right code.


Regards,
shuvo2k6
Jan 29 '08 #8

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: Sue | last post by:
On code-behind page: (attributes set programatically for each of these elements) linkbutton added to tablecell textbox added to tablecell tablecells added to tablerow tablerow added to table...
3
by: Jim Heavey | last post by:
Trying to figure out the technique which should be used to add rows to a datagrid. I am thinking that I would want an "Add" button on the footer, but I am not quite sure how to do that. Is that...
0
by: Luis Esteban Valencia | last post by:
Please help me if possible Its only adding a row. When I click again it steps into the function but doesnt add it to the page. Private Sub LinkButton2_Click(ByVal sender As System.Object,...
0
by: Luis Esteban Valencia | last post by:
Hello I wrote a program with code behind in C# to add row into table dynamically and the program worked very well in .Net Framework 1.1. When I run this program in .Net Framework 2.0 beta...
6
by: Rudy | last post by:
Hi all, I know this is easy, just can't seem to get it. I have a windows form, and a text box, with a value already in it. I need to add that value to a table. It's just one value, so the entire...
3
by: Husam | last post by:
Hi EveryBody: I made project by Vb.Net which consist the following items: 1\ Textbox 2\Button 3\Listbox When you write any thing in the textbox and press the button any text written in...
4
by: Duncan Dimech | last post by:
Dear All I am writing a tool which requires to have controls added to it dynamically. To make the task more complex, the addition of the control cannot happen anywhere but it has to be instead of...
0
by: ganesh22 | last post by:
Hi... Iam using GridView in asp.net(2.0) .My requirement is user can add,update,delete in gridview I written the code for add & update but can u help adding rows in grid view My code: ...
2
by: ganesh22 | last post by:
Hi, the below code is for dynamically adding textbox, but it will adding for same textbox only my requirement is how many times i click add button such times textbox will add for ex: if i click...
2
by: Ken Fine | last post by:
I want to add the security question and answer security feature to the ChangePassword control. I am aware that this functionality is built into the PasswordRecovery tool. I have implemented the...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.