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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T21:40:43+00:00 2026-05-14T21:40:43+00:00

As a personal project, I’m putting together a C# WPF calendar. I’m stuck on

  • 0

As a personal project, I’m putting together a C# WPF calendar.

I’m stuck on coding the calendar screen – specifically, the 5×7 grid of days.

I’ve first tried to code it using elements like Panels, Labels, and Buttons. I’ve decided that was too cumbersome.

I’ve then decided to use GDI to draw the calendar myself. I now have a wonderful layout – but I’m not sure how to handle interactive regions of the calendar. (Say, Previous/Next month, clicking on any particular day…)

After rendering the calendar screen, should I be creating button objects for all those tasks, and assigning onClick handlers to them?

Or is there an alternative solution?

Thanks in advance.

-Vladislav

  • 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-14T21:40:44+00:00Added an answer on May 14, 2026 at 9:40 pm

    You should not place controls on your hand-drawn panel; that’s a recipe for trouble.

    Instead, you should store the bounds of the buttons as Rectangles, and track them yourself in mouse events.

    However, it would be better to implement everything in WPF, using a Grid and some Buttons.

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

Sidebar

Related Questions

I'm working a personal project that's going to include a home-screen widget updated with
I am working on this personal project and the sign-in screen of the website
I have spent the weekend working on a personal project and got stuck here.
For a personal project, I need to dynamically populate a grid, based on the
I'm starting a new personal project on the side, so this is the first
I have a personal project I'm planning and I came to a small hurdle.
I am about to start a new personal project. It aims to be a
As a part of a personal project, I am making an application level protocol
I am involved in a personal project which will require pretty extensive knowledge of
I am working on a personal project based in PHP and MySQL, and I

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.