The panel of a combobox dropdown is a separate window that isn't a child of
the combobox parent. I suggest that you need to redesign your control to use
a NativeWindow based implementation for the dropdown panel.
--
Bob Powell [MVP]
Visual C#, System.Drawing
Ramuseco Limited .NET consulting
http://www.ramuseco.com
Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm
Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm
All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.
"Peter Proost" <pp*****@nospam.hotmail.com> wrote in message
news:e3**************@TK2MSFTNGP14.phx.gbl...
Hi I have made my own control with a dropdown functionality like a
combobox
and it works just great, but I've got one problem remaining. If you put a
combobox on a panel and press the little arrow the dropdown part enlarges
outside the bounds of the panel. How can I achieve this for my own
usercontrol? My usercontrol is a textbox with on it's right side a button
and if you click the button a datagrid becomes visible below the textbox,
but I can't find out how to draw the datagrid outside the bounds of the
panel
Thanks in advance
Greetz Peter