textbox1 to textbox2

Please support our C# advertiser: Intel Parallel Studio Home
Thread Solved

Join Date: Oct 2008
Posts: 89
Reputation: sfrider0 is an unknown quantity at this point 
Solved Threads: 0
sfrider0 sfrider0 is offline Offline
Junior Poster in Training

textbox1 to textbox2

 
0
  #1
Oct 19th, 2008
Hey. I'm new to C#. I need to enter data into textbox1. Then press button1, then the text in textbox1 is displayed in textbox2. I'm using Visual Studio 2005. Any help would be greatly appreciated. Can I do this in design view?
Reply With Quote Quick reply to this message  
Join Date: Aug 2008
Posts: 1,735
Reputation: LizR has a spectacular aura about LizR has a spectacular aura about 
Solved Threads: 186
LizR LizR is offline Offline
Posting Virtuoso

Re: textbox1 to textbox2

 
0
  #2
Oct 20th, 2008
This is a nice and simple thing to do, What have you read and what problems are you having? (Please read the stickies)
Did I just hear "You gotta help us, Doc. We've tried nothin' and we're all out of ideas" ? Is this you? Dont let this be you! I will put in as much effort as you seem to.
Reply With Quote Quick reply to this message  
Join Date: Oct 2008
Posts: 5
Reputation: TigerHeart is an unknown quantity at this point 
Solved Threads: 1
TigerHeart TigerHeart is offline Offline
Newbie Poster

Re: textbox1 to textbox2

 
0
  #3
Oct 20th, 2008
i'm still new to programming also but i beleive that the only way to do it is in design view. but it seems like you havnt read anything or done any research just design the form and then double click the "button" to enter the code. do some research
Reply With Quote Quick reply to this message  
Join Date: Aug 2008
Posts: 1,735
Reputation: LizR has a spectacular aura about LizR has a spectacular aura about 
Solved Threads: 186
LizR LizR is offline Offline
Posting Virtuoso

Re: textbox1 to textbox2

 
0
  #4
Oct 20th, 2008
You can do it manually and programattically if you really insist, but why make your life harder if you dont need to
Did I just hear "You gotta help us, Doc. We've tried nothin' and we're all out of ideas" ? Is this you? Dont let this be you! I will put in as much effort as you seem to.
Reply With Quote Quick reply to this message  
Join Date: Oct 2008
Posts: 1,986
Reputation: ddanbe has much to be proud of ddanbe has much to be proud of ddanbe has much to be proud of ddanbe has much to be proud of ddanbe has much to be proud of ddanbe has much to be proud of ddanbe has much to be proud of ddanbe has much to be proud of ddanbe has much to be proud of 
Solved Threads: 289
ddanbe's Avatar
ddanbe ddanbe is online now Online
Posting Virtuoso

Re: textbox1 to textbox2

 
0
  #5
Oct 20th, 2008
Design view is just, well, design. It's making programming a little bit easier. It relieves you of all the boring things like initialising the color, position etc. of a button for instance. The code for that is automatically generated for you during the design process.
When your program has got to do something(which it usualy should do) it generates an event for instance by clicking a button. It is your responsibility as a programmer to respond to that event in your code.(A design feature can not guess what you want to do) The response could be : move a text from one textbox to another.
Happy programming!
Reply With Quote Quick reply to this message  
Join Date: Oct 2008
Posts: 89
Reputation: sfrider0 is an unknown quantity at this point 
Solved Threads: 0
sfrider0 sfrider0 is offline Offline
Junior Poster in Training

Re: textbox1 to textbox2

 
0
  #6
Oct 20th, 2008
I know how to hard code a message into a button by using this.textBox1.AppendText("text");
Do I still use that line or is it something completely different?
Last edited by sfrider0; Oct 20th, 2008 at 11:04 pm.
Reply With Quote Quick reply to this message  
Join Date: Oct 2008
Posts: 89
Reputation: sfrider0 is an unknown quantity at this point 
Solved Threads: 0
sfrider0 sfrider0 is offline Offline
Junior Poster in Training

Re: textbox1 to textbox2

 
0
  #7
Oct 21st, 2008
I figured it out. I was leaving .Text out of it.
  1. this.textBox1.AppendText(textBox2.Text);
Last edited by sfrider0; Oct 21st, 2008 at 12:27 am.
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC