"Brian Henry" <no****@nospam.microsoft.com>'s wild thoughts
were released on Wed, 20 Jul 2005 11:06:43 -0400 bearing the
following fruit:
Is there anyway to prevent the white box that drops down when you do a
combobox dropdown from showing? I am trying to make a custom combobox which
requires showing a custom form in its place, but the white box shows up
still ontop of the new form that is taking its palce even though there is no
items in the white box. Any windows messages or anything you can trap or
whatnot? thanks!
You would make a usercontrol inherited from the combobox
then capture the messages to the combo box and intercept any
message that would result in the combobox showing it's
dropdown and instead show your own. So you'll need to
capture mouseclicks and the f4 key being pressed.
If you implement IMessageFilter you can capture the F4 key
and use Sub WndProc to capture the mouse events. I can't
remember why you can't capture the F4 key here too.
Sorry I can't be of more help, I can't find the article I
read about this so I'm going from memory.
Jan Hyde (VB MVP)
--
A man is incomplete until he is married.
After that, he is finished.
(Zsa Zsa Gabor)
[Abolish the TV Licence -
http://www.tvlicensing.biz/]