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 7404429
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T05:15:18+00:00 2026-05-29T05:15:18+00:00

I am new to C# is know some visual basic but I don’t know

  • 0

I am new to C# is know some visual basic but I don’t know C#. Now my question is I have a monthly calendar on my page and when someone selects the date and hits the submit button the date should appear in the label to the right. Here is a part of my code:

private void button1_Click(object sender, EventArgs e)
{

    label6.Text = monthCalendar1.Text;
}

private void label6_Click(object sender, EventArgs e)
{
    label6.Text = monthCalendar1.SelectionStart.ToShortDateString();
}

I am not understanding why it is not working.

Edit: What is not working is the label for the calendar when the user picks a date and click the submit button the date should go over to the label.

I have been here answering question and all i am asking is for someone to help me understand what I am doing wrong. And you guys want to down vote me..

  • 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-29T05:15:18+00:00Added an answer on May 29, 2026 at 5:15 am

    Things we need to know:

    • How is your UI laid out? Maybe post a picture and indicate where label6 is.
    • Any exceptions?
    • What exactly happens when you click on your button? (Not working is not descriptive enough. Tell exactly what changes.)

    My research: monthCalendar1 is likely System.Windows.Forms.MonthCalendar. MonthCalendar.SelectionStart should be valid at any time, as long as it’s between MinDate and MaxDate. What I don’t get is if the label is your garden variety, why wouldn’t the label show?

    Other note: If there’s a button to change the label, there’s no point having a click handler on the label, and vice versa.

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

Sidebar

Related Questions

I am new to testing.I have to test some C# classes.Kindly let me know
For some reason, when I'm creating a new property in Visual Basic .NET in
I have some deprecated code in visual basic when connecting to an oracle database.
I have a very basic question about SQL server and Visual Studio 2010. I'm
I'm new to HTML coding and I know HTML has some reserved characters for
new to JBoss and am configuring some applications. I know how to do this
I know something about Java but completely new to Enterprise Java. I'm trying my
We know that malloc() and new operation allocate memory from heap dynamically, but where
I'm just messing around with Visual Basic in Visual Studio 2010. Anyone know how
(I know there's some close duplicates out there, but none of them were able

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.