Solved

Looking for a C# datepicker. Urgent.

Posted on 2004-10-14
5
214 Views
Last Modified: 2010-04-15
I am look for a datepicker where I can get a value from a database a initialize it with the value at load time? Can someone help me on this one.
0
Comment
Question by:mathieu_cupryk
5 Comments
 
LVL 8

Expert Comment

by:tomvergote
ID: 12308441
are you talking about webforms or winforms?
0
 
LVL 8

Expert Comment

by:Razzie_
ID: 12308518
There is a built in DateTimePicker. Just drag it on your form.

You can set a date using:

DateTime dt = new DateTime(2002, 3, 11);
this.myDateTimePicker.Value = dt;

You'd just have to obtain the DateTime parameters from your database.

HTH,

Razzie
0
 
LVL 9

Expert Comment

by:msdixon
ID: 12308571
visual studio.net includes a rudimentary one for both web and windows.
0
 

Author Comment

by:mathieu_cupryk
ID: 12308861
Where is it I do not see it in the tools.
0
 
LVL 8

Accepted Solution

by:
Razzie_ earned 500 total points
ID: 12309311
The datetimepicker for Windows Forms can be found in the toolbox when you have design mode up.
There is no standard DateTimePicker for webforms AFAIK, although a calendar control is pretty much the same. You can download a custom DateTimePicker for web applications here: http://www.codeproject.com/aspnet/DateTimePicker.asp
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now