473,385 Members | 2,015 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

DatePicker Dropdown

Hi
Is there a way to make the picker drop down through code?
Thanks
Vayse
Dec 21 '05 #1
2 1894
There isn't any native Win32 message or method to do it, but the following
is a workaround:

DateTimePicker1.Focus()
SendKeys.SendWait("%{DOWN}")

Basically it emulates a user pressing the button.

/claes

"Vayse" <va***@nospam.nospam> wrote in message
news:Oa*************@TK2MSFTNGP09.phx.gbl...
Hi
Is there a way to make the picker drop down through code?
Thanks
Vayse

Dec 22 '05 #2
Hi

From your description, I understand that you are using the
System.Windows.Forms.DateTimePicker, and you want to show the Calendar by
code.
Have I fully understood you? If there is anything I misunderstood, please
feel free to let me know.

Based on my research, the DateTimePicker control, did not expose such
interface for us to use for showing the Calendar. It only expose to the UI
interactive when you click the arrow in the control.

As a workaround, I think you may try to show another MonthCalendar control
in the proper place and interactive it with DateTimePicker.
e.g. When someone click one date 2,5, 2005 ,we can set it via the code
below.
Me.DateTimePicker1.Value = New Date(2002, 2, 5)

Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.

Dec 22 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Always Learning | last post by:
Hi Guys, I have a form field of type datepicker. I want to include it in my get string. like this: Response.Redirect("writetodb.asp?Name=" + Textbox1.Text + "&Telephone=" + TextBox2.Text +...
0
by: Deano | last post by:
Hi, May have asked this before but haven't got anywhere with this. I have a datepicker constructed from a form i.e it's not an ActiveX control. On my date controls I have this line in the...
7
by: Malcolm Webb | last post by:
I use the Microsoft Access Calendar (ActiveX) to pass dates into queries and reports. I have recently come across the Microsoft Access DatePicker developed by Brendan Kidwell and I now use this...
2
by: flipdoubt | last post by:
What do most people use for a DatePicker and is a DatePicker included in ASP.NET 2.0? I've seen some of the commercial products out there, but the redistributable license for most of them is too...
2
by: G .Net | last post by:
Hi Can anybody help me with setting the allowable Max and Min date for a DatePicker? I would like to restrict the possible date selections to a given month. So for example, if I were to...
0
by: Armand | last post by:
Hi All, is anyone of you have any good resource about implementing datepicker that is binded into asp:textbox control? I do have a client side datepicker in JS, but it is binded to html input...
7
by: julian.tklim | last post by:
Hi, I need to build an editable Datagrid with add & delete buttons on each row using javascript. DataGrid need not be pre-populated with values. To make the thing complicated, one of the...
2
by: stainless | last post by:
I have a date selection field that can be blank OR set to a valid future date. I am thinking of using a datepicker field but have one issue with this. If I have a check box in the datepicker...
3
by: hiranmaie | last post by:
Hi, How can I design a datepicker using javascript or some other tools in C#.net, I dont want to use a calendar as it occupies much space. I want a dropdown which allows me to select the date...
6
by: ichibon | last post by:
Hi, I have trouble setting the position of the DatePicker, a control from WPF Toolket June 2009 release. When click on the DatePicker control, the Calendar always open as a drop down and expands...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.