473,394 Members | 1,746 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,394 software developers and data experts.

Manually dropping the DateTimePicker calendar?

Hi,

I need to programmatically drop the .NET DateTimePicker calendar. I did
this in VB6 by doing the following:

SendMessage DTDateTime.hwnd, WM_KEYDOWN, VK_F4, 0

This worked because the F4 key is the key you press to get the calendar to
drop down.

I'd like to do this w/o API calls, if possible.

Any ideas?

Thanks,

Scott
Nov 20 '05 #1
2 6573
Never mind. I got it...

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

"Scott" <sk*******@nospam.please.appliedsystems.com> wrote in message
news:eB**************@TK2MSFTNGP09.phx.gbl...
Hi,

I need to programmatically drop the .NET DateTimePicker calendar. I did
this in VB6 by doing the following:

SendMessage DTDateTime.hwnd, WM_KEYDOWN, VK_F4, 0

This worked because the F4 key is the key you press to get the calendar to
drop down.

I'd like to do this w/o API calls, if possible.

Any ideas?

Thanks,

Scott

Nov 20 '05 #2
Never mind. I got it...

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

"Scott" <sk*******@nospam.please.appliedsystems.com> wrote in message
news:eB**************@TK2MSFTNGP09.phx.gbl...
Hi,

I need to programmatically drop the .NET DateTimePicker calendar. I did
this in VB6 by doing the following:

SendMessage DTDateTime.hwnd, WM_KEYDOWN, VK_F4, 0

This worked because the F4 key is the key you press to get the calendar to
drop down.

I'd like to do this w/o API calls, if possible.

Any ideas?

Thanks,

Scott

Nov 20 '05 #3

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

Similar topics

2
by: snake_2k | last post by:
The button in the datetimepicker class that opens the calendar is too small for my touchscreen users. How can I make a regular button that opens the datetimepicker calendar ? I don't want to...
0
by: E-Cube | last post by:
Hello All, I have a datetimepicker whose initial format is: DateTimePicker1.Format = DateTimePickerFormat.Custom DateTimePicker1.CustomFormat = " " DateTimePicker1.Checked = False which will...
0
by: E-Cube | last post by:
Hello All, I have a datetimepicker control that is set to DateTimePicker1.Format = DateTimePickerFormat.Custom DateTimePicker1.CustomFormat = " " in the form load of my sample app. When I...
9
by: Guy | last post by:
I have extended the datetimepicker control to incorporate a ReadOnly property. I have used the new keyword to implement my own version of the value property, so that if readonly == true then it...
0
by: Sumit | last post by:
Hi all, I have a datetimepicker on my windows form. When the user selects it i check whether the date entered is a Sunday or not & if its not a sunday i want that the control remains on the...
0
by: Ing. Rajesh Kumar | last post by:
Hi everybody I have created a very useful DateTimePicker user control with a calendar and four DropDownLists for Month, Year, Hour and Minute on it. Solution works fine so i was thinking to put it...
0
by: Scott | last post by:
Hi, I need to programmatically drop the .NET DateTimePicker calendar. I did this in VB6 by doing the following: SendMessage DTDateTime.hwnd, WM_KEYDOWN, VK_F4, 0 This worked because the F4...
1
by: mfleet1973 | last post by:
Hi. I'm using vb.net 2003. I'm trying to find a way to detect when the calendar "pops up". For example, when the user clicks on the button to display the calendar, I need to know that this...
7
by: Kirsten | last post by:
I am trying to set the colors for the DateTimePicker. I managed to change all the calendar colors - that is, of the calendar after the DateTimePicker is click and the Calendar is opened, but nothing...
11
by: jessy | last post by:
Hi, I have a problem with my DateTimePicker javascript code which i downloaded , the problem is when i pick the date and the date appears in my Text Field and i click Submit the date which i picked...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.