Click here to Skip to main content
15,893,337 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
how can write code to write data to a text-box in window-form apps and and how can i copy the same data to other text box in the same program.??
Posted
Comments
Sergey Alexandrovich Kryukov 15-Jan-13 1:11am    
This is just the abuse. What, do you think asking such question is better then just read about the basics? Think again.
—SA
Sergey Alexandrovich Kryukov 15-Jan-13 2:01am    
No, this is not OK. Not only you demonstrate extreme laziness, saying such things is extremely rude.
—SA
Richard MacCutchan 15-Jan-13 4:15am    
This is the third time you have asked this question. Go and make an effort to try some of the suggestions you have been given. You would do well to start by reading the documentation for TextBoxes.

1 solution

C#
textbox1.text = "abc"; //write data in textbox else runtime you can write data in textbox using keyboard

to copy textbox1 value in textbox2...
in textbox1's textchanged event...
C#
textbox2.text = textbox1.text;

Happy Coding!
:)
 
Share this answer
 
Comments
prajwal rao 15-Jan-13 1:13am    
Thank you....:)
Aarti Meswania 15-Jan-13 1:14am    
Welcome! :)
Glad to help you! :)
prajwal rao 15-Jan-13 1:25am    
madam can i use the same technique to write the data to CD ROM....???
Aarti Meswania 15-Jan-13 1:34am    
you should ask to write data in a file which is in cd ok?
to write data of textbox to a file...
you can do this using stream writer class

you will need path for file it doesn't matter it's in cd, but make sure cd is re-writable.

You should post this question as a new question

prajwal rao 15-Jan-13 1:38am    
OK thanks allot. sorry....:( am new for this site.... so i don't know any rules......:( very sorry for that....

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900