Solved

In Delphi VCL, TDatePicker, how do you force the combobox to open?

Posted on 2014-09-04
2
349 Views
Last Modified: 2014-09-05
With a normal combox you can force the box to open when you enter the field. How do you make this happen with TDatePicker in combox mode?

I have tried the code shown below, but this doesn't activate.
SendMessage(cbContact.Handle, CB_SHOWDROPDOWN, 1, 0);

Open in new window

0
Comment
Question by:GrahamDLovell
2 Comments
 
LVL 19

Accepted Solution

by:
MerijnB earned 500 total points
ID: 40305352
You can use

 SendMessage(cbContact.Handle,WM_SYSKEYDOWN, VK_DOWN, 0);

Open in new window

0
 

Author Closing Comment

by:GrahamDLovell
ID: 40305369
Brilliant! Thanks
0

Featured Post

Does Powershell have you tied up in knots?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
mirrorEnds challenge 6 123
maven archtype selection in eclipse 1 57
Which programming language is best for beginning Object-oriented programming 11 142
copyEvens challenge 6 98
If you haven’t already, I encourage you to read the first article (http://www.experts-exchange.com/articles/18680/An-Introduction-to-R-Programming-and-R-Studio.html) in my series to gain a basic foundation of R and R Studio.  You will also find the …
This article is meant to give a basic understanding of how to use R Sweave as a way to merge LaTeX and R code seamlessly into one presentable document.
The goal of this video is to provide viewers with basic examples to understand and use switch statements in the C programming language.
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

770 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