Click here to Skip to main content
12,953,937 members (42,362 online)
Rate this:
 
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
Updated 25-Jul-12 5:11am
Tim Corey118.7K
v2
Comments
Tim Corey 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 25-Jul-12 11:36am
   
You could also use binding when you load the Window
arjunpatel 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
Top Experts
Last 24hrsThis month
OriginalGriff 6,464
CHill60 3,490
Maciej Los 3,123
ppolymorphe 2,020
Jochen Arndt 1,975


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