Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Looking for a C# datepicker. Urgent.

Posted on 2004-10-14
5
Medium Priority
?
227 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 1500 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

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.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article describes a simple method to resize a control at runtime.  It includes ready-to-use source code and a complete sample demonstration application.  We'll also talk about C# Extension Methods. Introduction In one of my applications…
Introduction Hi all and welcome to my first article on Experts Exchange. A while ago, someone asked me if i could do some tutorials on object oriented programming. I decided to do them on C#. Now you may ask me, why's that? Well, one of the re…
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…
Look below the covers at a subform control , and the form that is inside it. Explore properties and see how easy it is to aggregate, get statistics, and synchronize results for your data. A Microsoft Access subform is used to show relevant calcul…

916 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