A
Andrew Cuthbert
Hi all,
I'm struggling with something I thought would be simple. I
need to build a combo box from scratch as I need to do
more alterations than an owner draw combo box will allow.
I was always told a combo box was just a textbox and a
listbox. Well, that's fine but the listbox is bound by the
clipping region of the form. Thus if the combo is
positioned near the bottom of the form, the listbox gets
chopped off.
I've tried creating a form for the listbox to sit on, and
then move both to the relevant location. This is still
buggy though as when you click in the listbox, the host
form loses focus - and I also suspect creating a whole
form just for this feature is not very efficient.
There must be a way surely to do this in .NET through GDI+
or something. Essentially all I want is to fool .NET into
drawing the listbox where I specify on the screen, without
being bound by a forms drawing area.
Any ideas?
Thanks,
Andrew Cuthbert
I'm struggling with something I thought would be simple. I
need to build a combo box from scratch as I need to do
more alterations than an owner draw combo box will allow.
I was always told a combo box was just a textbox and a
listbox. Well, that's fine but the listbox is bound by the
clipping region of the form. Thus if the combo is
positioned near the bottom of the form, the listbox gets
chopped off.
I've tried creating a form for the listbox to sit on, and
then move both to the relevant location. This is still
buggy though as when you click in the listbox, the host
form loses focus - and I also suspect creating a whole
form just for this feature is not very efficient.
There must be a way surely to do this in .NET through GDI+
or something. Essentially all I want is to fool .NET into
drawing the listbox where I specify on the screen, without
being bound by a forms drawing area.
Any ideas?
Thanks,
Andrew Cuthbert