Solved

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

Posted on 2014-09-04
2
362 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
[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
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

Enroll in May's Course of the Month

May’s Course of the Month is now available! Experts Exchange’s Premium Members and Team Accounts have access to a complimentary course each month as part of their membership—an extra way to increase training and boost professional development.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
fizzArray3  challenge 1 115
groupNoAdj 7 124
SQL400 max size 5 118
groovy example issue 10 114
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 …
When we want to run, execute or repeat a statement multiple times, a loop is necessary. This article covers the two types of loops in Python: the while loop and the for loop.
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

734 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