Click here to Skip to main content
11,408,708 members (58,887 online)
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C#
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 14-Jan-13 19:44pm
Comments
Sergey Alexandrovich Kryukov at 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 at 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 at 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

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

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...
textbox2.text = textbox1.text;
Happy Coding!
Smile | :)
  Permalink  
Comments
pajju1992 at 15-Jan-13 1:13am
   
Thank you....:)
Aarti Meswania at 15-Jan-13 1:14am
   
Welcome! :)
Glad to help you! :)
pajju1992 at 15-Jan-13 1:25am
   
madam can i use the same technique to write the data to CD ROM....???
Aarti Meswania at 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 at 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....
Sergey Alexandrovich Kryukov at 15-Jan-13 2:02am
   
Are you serious?
—SA
prajwal rao at 15-Jan-13 2:04am
   
What ???
Aarti Meswania at 15-Jan-13 2:09am
   
hello sir,
I didn't get what you mean to say?
Sergey Alexandrovich Kryukov at 15-Jan-13 2:17am
   
This is written to prajwal rao, about the abusive behavior, apparently in vain... maybe this is a time to ban this account...
—SA
Aarti Meswania at 15-Jan-13 2:22am
   
okay
I read his questions, strange! he had ask it so many times
I wasn't know before this is a reposted question

hope OP understands this
anyways sir,
have a nice time! :)

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

  Print Answers RSS
0 OriginalGriff 390
1 Sergey Alexandrovich Kryukov 364
2 Maciej Los 195
3 Peter Leow 140
4 PIEBALDconsult 130
0 Sergey Alexandrovich Kryukov 8,626
1 OriginalGriff 6,855
2 Maciej Los 3,322
3 Abhinav S 3,238
4 Peter Leow 3,034


Advertise | Privacy | Mobile
Web02 | 2.8.150414.5 | Last Updated 15 Jan 2013
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100