Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 149
  • Last Modified:

Selecting non continuous dates in a calendar control

I want to be able to select non continuous dates in a calendar control, is this possible in any of the standard m/s controls ? or does anyone know of a control that can be purchased (or is preferably free) that will allow me to do this.

As an indication of what I am trying to do is to allow a manager of a shop to assign staff to different days of the week in one go, without having to go into each day of the week on the calendar.

Thanks
   Steve
0
swtiley
Asked:
swtiley
1 Solution
 
amyhxuCommented:
There's no standard control that can do this. You can create a user control for one day (the simplest form can have only a number representing the date). Then in your form place three comboboxes or listboxes to allow user select year, month and employee, as well as a panel, add as many user controls as needed for that month (31 for Jan, 28 for Feb not in a leap year , and so on). You can set a public property for user control as Selected. When user click a save button, go through each user control  and check if the flag is set to true, and save them to records.
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now