Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Hi.

 

I have a DateTimePicker on a win form in VB.NET 2003, and I have a database table that contains different dates as records.

What I want to do is detect what dates are exist in the database, and mark then on the DateTimePicker.

Does anyone know how can I mark a specific date in the DateTimePicker (which is not the current date)?

 

Thanks!

Tom Rahav.

Posted

Not what I need...

 

Hi... sorry for being not so clear, but I don't need the DateTimePicker to show a specific date, but assume that I few dates (3 different dates for instance in the same month). Now, when I open the DateTimePicker window (the one that shows you the entire moth) I want these dates to be marked (in adifferent color or so...).

 

Hope it's clearer,

Tom.

 

Parse the date into the Date data type if you need to and then set the DateTimePicker's .Value property to your Date. Easy as pie.
  • Leaders
Posted
Oh, well, sorry. That i can't help you with. Perhaps you could list the dates in a listbox and when the user clicks on of the dates it selects it in the datetimepicker. Otherwise I don't beleive that such a feature is available with the datetimepicker.
[sIGPIC]e[/sIGPIC]

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...