Solved

Looking for a C# datepicker. Urgent.

Posted on 2004-10-14
5
225 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

Article by: Najam
Having new technologies does not mean they will completely replace old components.  Recently I had to create WCF that will be called by VB6 component.  Here I will describe what steps one should follow while doing so, please feel free to post any qu…
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
Suggested Courses

624 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