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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T17:40:07+00:00 2026-06-14T17:40:07+00:00

I’ve taken up the task of doing something a bit harder than I initially

  • 0

I’ve taken up the task of doing something a bit harder than I initially thought it would be – considering my lack of skill in this area – but I’m still determined to get it done.

I am trying to design a simple custom windows forms control that shows a small weekly calendar. The idea is that I want it to fill up with colored blocks indicating time used time slots in increments of 15 minutes. The time range for any given day is 8am until 10pm, so that’s 14 hours with 4 blocks per hour for a total of 56 blocks in any given day. The smallest time interval to actually be used is 1 hour, next being 1 hour and 15 minutes, then 2.5 hours. I’d like to be able to pass into this control an object representing a class schedule for a given class in university, which normally takes place for 3 hours a week, one hour a day for 3 days. I want the control to look at the data of the object to determine what times it needs to black out on the calendar.

Now here’s my question. What kind of control do you think might be best to accomplish this? My first thought was to use some kind of datagridview as the basis of my custom control with 56 rows and 7 columns. I’m sure this is not the optimal way to do it (nor even a very good one – but it’s all I can think of) since I can’t think of a way for the control to be able to color either 4, 5 or 10 consecutive blocks.

Does anybody have a suggestion on how I can approach this? Thanks.

  • 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-06-14T17:40:09+00:00Added an answer on June 14, 2026 at 5:40 pm

    Trying to shoehorn that functionality into an existing control will get complicated fairly fast. To use a grid you would programmatically have to change the background color of each cell every time you loaded in a new data object.

    As an alternative, what you can do is have a User Control that just draws everything via GDI+ (System.Drawing). Have the background of the control just be the grid lines, and manually draw the rectangles on top of that grid

    There’s also a few third party controls out there that I think will give you what you are looking for if you are open to that, they are usually found googling for “outlook scheduler controls”

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

Sidebar

Related Questions

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
For some reason, after submitting a string like this Jack’s Spindle from a text
this is what i have right now Drawing an RSS feed into the php,
I have this code to decode numeric html entities to the UTF8 equivalent character.
I am doing a simple coin flipping experiment for class that involves flipping a
I would like to run a str_replace or preg_replace which looks for certain words
I would like to count the length of a string with PHP. The string
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.