Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
I Want to known about how to send numeric value from one textbox to another textbox in same Form in Windows application C#.net
 
Plz Give answer in C# language
Posted 25-Jul-12 6:09am
Edited 25-Jul-12 6:11am
Tim Corey90.5K
v2
Comments
Tim Corey at 25-Jul-12 11:11am
   
I removed your email address from this question. You should never post your email address here. All answers will be emailed to you automatically.
Kenneth Haugland at 25-Jul-12 11:36am
   
You could also use binding when you load the Window
arjunpatel at 6-Jul-13 8:32am
   
provide me windows application project in c# 4.0
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

private void txtName_TextChanged(object sender, EventArgs e)
{
      txtOtherName.Text = txtName.Text;
}
  Permalink  
v2
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

To transfer the value from one textbox to another, you would do something like this:
Textbox2.text = Textbox1.text;
You could put that inside a button click event so that when the button was clicked, the value was updated.
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 3

private void Form1_Load(object sender, EventArgs e)
{
    this.textBox1.DataBindings.Add("Text", textBox2, "Text");
    this.textBox2.DataBindings.Add("Text", textBox1, "Text");
 
}
  Permalink  

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

  Print Answers RSS
0 OriginalGriff 562
1 Sergey Alexandrovich Kryukov 484
2 Maciej Los 325
3 DamithSL 233
4 Mathew Soji 195
0 OriginalGriff 7,168
1 Sergey Alexandrovich Kryukov 6,377
2 DamithSL 5,461
3 Manas Bhardwaj 4,876
4 Maciej Los 4,450


Advertise | Privacy | Mobile
Web01 | 2.8.1411023.1 | Last Updated 25 Jul 2012
Copyright © CodeProject, 1999-2014
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