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.6K
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 304
1 Sergey Alexandrovich Kryukov 295
2 Shweta N Mishra 216
3 Maciej Los 210
4 PIEBALDconsult 184
0 OriginalGriff 7,630
1 Sergey Alexandrovich Kryukov 7,022
2 DamithSL 5,586
3 Manas Bhardwaj 4,946
4 Maciej Los 4,525


Advertise | Privacy | Mobile
Web04 | 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