473,320 Members | 1,694 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

copying the text in different textboxes

I have five text boxes. In the first text boxes I put the user first and last name. In the second is the address and in the third is the city and in the fourth is the state and in the last one is the zip. I would like to know how to copy the information in the text boxes and put on another record with the same information.
Mar 16 '10 #1

✓ answered by tlhintoq

string Temp = PayeeAdress.Text

That's it. Temp now contains a copy of whatever text was in your PayeeAdress textbox.

You can do with it what you like. Write it to a file. Put it in another textbox. Send it to a database.

SecondTextBox.Text = Temp

4 1985
tlhintoq
3,525 Expert 2GB
I would like to know how to copy the information in the text boxes
Textboxes have a .Text property that contains the text you see in the textbox. Set a variable to that

string Temp = textBox1.Text;
Mar 16 '10 #2
How do I do that? Will something like this work for visual basic.net

String Temp = PayeeAddress.Text
PayeeAddress.Paste()
Mar 16 '10 #3
tlhintoq
3,525 Expert 2GB
string Temp = PayeeAdress.Text

That's it. Temp now contains a copy of whatever text was in your PayeeAdress textbox.

You can do with it what you like. Write it to a file. Put it in another textbox. Send it to a database.

SecondTextBox.Text = Temp
Mar 16 '10 #4
Frinavale
9,735 Expert Mod 8TB
enliven60411, what do you mean when you say:
I would like to know how to copy the information in the text boxes and put on another record with the same information.
You copy the information in the TextBoxes by accessing their Text property as Tlhintoq has suggested.....

I have no idea what you mean about "put on another record with the same information".

Could you explain in more detail so that we can help you better?

-Frinny
Mar 17 '10 #5

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

Similar topics

2
by: Aaron | last post by:
Hello, I have have a series of textboxes(txtFineReason1 thru txtFineReason6), only txtFineReason1 is required. This series of textboxes has a corresponding series of textboxes(txtFine1 thru...
6
by: Alpha | last post by:
I have several textboxes that I need to chang the text when the selection row is changed in a datagrid. I have the following code. This textbox displayes the initial selection but when I click on...
2
by: Alpha | last post by:
Hi, I have a window based program. One of the form has several textboxes and a datagrid. The textboxes are bind to the same dataset table as the datagrid and the text changes to reflect different...
1
by: Martin | last post by:
Dear Group Sorry for bothering you again but I need expert advice on this. I have placed a HTML textbox on my aspx form and converted it to run as a server control. At some point in my code I...
1
by: Phill. W | last post by:
(Apologies if I've missed the answer someplace else, but ... ) Is it possible in "intercept" the actions of the standard (Cut'n'Paste) context menu provided by a TextBox (or derived class...
0
by: berwiki | last post by:
I am trying to copy a table to another SQL 2000 Database, but I continually get errors. When I right-click, choose All-Tasks, Export-Data and go through the DTS settings, I get an 'Unspecified...
6
by: rn5a | last post by:
When the EditCommandColumn in a DataGrid is clicked, all the BoundColumns get replaced by TextBoxes so that users can alter the data. By default, the Text in the TextBoxes are left-aligned. Is...
6
by: Mark C | last post by:
how do you prevent users from copying ctrl-c content from your textboxes. I know how to do this with IE which is <body onSelectStart="return false;"> but does not work in Mozilla Thanks Mark...
16
by: mj.redfox.mj | last post by:
Can anyone help? I have a textbox which I'm programatically adding by using the following code: txtTest = New TextBox txtTest.ID = "txtLeft" + cntCount.ToString...
2
by: sasimca007 | last post by:
Hello friends, I have one critical doubt on textboxes. That is, I am using modperl and in that within one loop i am giving nof.of text boxes with different names like below: ...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.