T
townes
I'm creating a UserControl that is essentially a button that displays
a panel when it is clicked. It will behave similar to a ComboBox, but
requires a custom look. Both the Button and the Panel are defined in the
designer, and I set each elements Visible key to match the state I want.
I can't get the panel to display past the bottom of the Form. The Form has
no border.
One thing that almost works is to change the Height of the form so the
panel will fit when needed at runtime. I use the TransparencyKey so the
blank space should be invisible. This creates a temporary but nasty blip of color
where the new form boundaries are.
How does a control like a ComboBox paint itself past a Form's edge? How
can I mimic this functionality with a my own UserControl. I'm sorry if
this is documented somewhere, I couldn't find to proper search terms.
thanks,
townes
a panel when it is clicked. It will behave similar to a ComboBox, but
requires a custom look. Both the Button and the Panel are defined in the
designer, and I set each elements Visible key to match the state I want.
I can't get the panel to display past the bottom of the Form. The Form has
no border.
One thing that almost works is to change the Height of the form so the
panel will fit when needed at runtime. I use the TransparencyKey so the
blank space should be invisible. This creates a temporary but nasty blip of color
where the new form boundaries are.
How does a control like a ComboBox paint itself past a Form's edge? How
can I mimic this functionality with a my own UserControl. I'm sorry if
this is documented somewhere, I couldn't find to proper search terms.
thanks,
townes