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

  • SEARCH
  • Home
  • 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 7643525
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T09:28:19+00:00 2026-05-31T09:28:19+00:00

Creating a Windows Forms Application in C#, I have a program that I am

  • 0

Creating a Windows Forms Application in C#, I have a program that I am trying to insert a date into a text box (textBox3), and I can’t get the date to show up. I created a button on the form that pops up, and the date shows up just fine. But, the text box never populates. Any suggestions? Here’s the code:

    private void textBox3_TextChanged(object sender, EventArgs e)
    {
        var today = DateTime.Today.ToString("dd/MM/yyyy");
        textBox3.Text = today;
    }

    private void button1_Click(object sender, EventArgs e)
    {
        var today = DateTime.Today.ToString("MM/dd/yyyy");
        MessageBox.Show("Today is " + today + ".");
    }
  • 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-31T09:28:20+00:00Added an answer on May 31, 2026 at 9:28 am

    Your text field will only update when you start typing anything on the textbox because, apparently, you are hooking up to the Text_Changed event.

    Type something in textBox3 and you’ll see that the text becomes whatever today is holding.

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

Sidebar

Related Questions

I have an issue with a Windows Forms application that I am creating. The
The basic setup is classic - you're creating a Windows Forms application that connects
I am creating a windows:forms application. I have read some of the answers give
I'm creating a simple C# Windows Forms application that connects to a SQL Server
I have a Windows-Forms Application that I configured to use with an ASP.NET Service
I'm creating a Windows Forms application and I'd like to have a similar look
I'm creating a multilingual application using Windows Forms. I have created my multilingual content
I'm creating my first Windows Forms Application, and one requirement is that there is
I'm creating a simple Windows Forms application with NHibernate and I'm a bit confused
I am working on creating a thread safe control for my windows forms application.

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.