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 5:09am
Edited 25-Jul-12 5:11am
Tim Corey87.2K
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 370
1 Gihan Liyanage 338
2 Vinay Mistry 160
3 ChauhanAjay 160
4 syed shanu 125
0 Sergey Alexandrovich Kryukov 9,021
1 OriginalGriff 7,941
2 CPallini 2,603
3 Richard MacCutchan 2,121
4 Abhinav S 1,928


Advertise | Privacy | Mobile
Web01 | 2.8.140827.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