Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6860865
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T02:27:44+00:00 2026-05-27T02:27:44+00:00

I’m quite sure I’m missing some sort of really obvious solution to this. It

  • 0

I’m quite sure I’m missing some sort of really obvious solution to this. It might be my state of rank newbie, but I am completely lost at this point.

Essentially, I need to create a WinForm that will allow the user to input text in textBox1 and textBox2. Then, at the click of button1, the text in textBox2 replaces that in textBox1. From what I can tell, this needs to go into the button1_Click event.

Here’s a few examples of what I’ve tried so far:

private void button1_Click(object sender, EventArgs e)
    {
        string output;

        output = textBox2.Text;
        textBox1.Text = output;

    }

And the simplest solution I could find:

private void button1_Click(object sender, EventArgs e)
    {
        textBox1.Text = textBox2.Text;
    }

As well as:

this.textBox1.Text = this.textBox2.Text;

None of these work. I can enter the text just fine in either textbox, but nothing happens when I actually click the button. My mother would turn me over her knee if she could hear my response to that lack of… well, response.

Like I said, I’m sure I’m missing something really obvious. But I’ve now consulted my textbook, Google, Bing and at least a half-dozen forums with no luck in finding anything that has let me solve this on my own. Could someone be kind enough to tell me what it is I’m doing wrong?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T02:27:45+00:00Added an answer on May 27, 2026 at 2:27 am

    It sounds like your event handler is not wired in.

    Go to your form designer and click on Button1, then look at the Click event and see if it says button1_Click. (The list of events is in the Properties window. Click the yellow lightning bold icon to view the events).

    Alternatively, if you want to just check that the event handler is wired up properly you can open (assuming your form is called MyForm) MyForm.Designer.cs and look for this line:

    this.Button1.Click += new System.EventHandler(this.button1_Click);
    

    or something real close to that.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

For some reason, after submitting a string like this Jack’s Spindle from a text
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have just tried to save a simple *.rtf file with some websites and
I want to count how many characters a certain string has in PHP, but
this is what i have right now Drawing an RSS feed into the php,
Seemingly simple, but I cannot find anything relevant on the web. What is the
I have a French site that I want to parse, but am running into
I have this code: - (void)parser:(NSXMLParser *)parser foundCDATA:(NSData *)CDATABlock { NSString *someString = [[NSString

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.