Solved

Looking for a C# datepicker. Urgent.

Posted on 2004-10-14
5
218 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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

Extention Methods in C# 3.0 by Ivo Stoykov C# 3.0 offers extension methods. They allow extending existing classes without changing the class's source code or relying on inheritance. These are static methods invoked as instance method. This…
Summary: Persistence is the capability of an application to store the state of objects and recover it when necessary. This article compares the two common types of serialization in aspects of data access, readability, and runtime cost. A ready-to…
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

785 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