Calender Control Default selection

Directlinq

Registered User.
Local time
Today, 06:52
Joined
Sep 13, 2009
Messages
67
Hi i have a Calender control 11 on one of my forms at the moment when i click on my combobox the calendar pops up with todays date already selected. This is my code that does this

Code:
Calendar5.Value = Date
If i wanted to just have the month and year selected with no day selected. Is this possible and if so what code would need to be used.

The reason behind this is on my computer when i open up the calendar and today is selected. I then click on the already selected date and it puts 00:00:00 in my combobox rather than the date. Every other date works but the one already selected.

Any help would be great
Thanks
 
Hi i have a Calender control 11 on one of my forms at the moment when i click on my combobox the calendar pops up with todays date already selected. This is my code that does this

Code:
Calendar5.Value = Date
If i wanted to just have the month and year selected with no day selected. Is this possible and if so what code would need to be used.

The reason behind this is on my computer when i open up the calendar and today is selected. I then click on the already selected date and it puts 00:00:00 in my combobox rather than the date. Every other date works but the one already selected.

Any help would be great
Thanks

i had this problem once.l i did one of two things. i made one form that was my own. put all the numbers on it, and that was it.

OR...you know that annoying little red circle that comes with the calendar? when it opens up, make it WHITE until a selection is made. :D
 
Sorry i dont really understandi might just be a little thick but, create numbers on a form? What numbers? Or the little red circle? To be honest i dont remember seeing a red circle and even if i did set up an if statement for the colour of the circle they still would not be able to select the same date twice in a row. They would have to click off of todays date then click back on it again. Is there any other way i can get around this. Thank you for your input though it is much appreciated. Thanks
 
isnt this caused because you have not actually changed something on the cal control - its already set to today? So if you set your control that you are updating to date() at the same time this should not be a issue...
 

Users who are viewing this thread

Back
Top Bottom