473,385 Members | 1,343 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.

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 6572
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...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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: 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
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?

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.