Always on top

jace808

Freshman
Joined
Jul 6, 2003
Messages
37
Location
SC, USA
I have made a custom control that consiste of a label (used as a line art to make a square), another label, and a textbox (that expands and contracts with mouse over). The problem is when I it expands it doesn't expand over top of the control below it. How can I make the textbox always on top of whatever it expands over?
 
The only way, I KNOW, this will ever work it's making your control from a Windows.Forms.Form...

Notice that, for example, the ComboBox Dropdown drops outside of the form it's in??? Yeah... The only way, and I repeat I KNOW, it's to maki theese kind of object out of a Form and then calculate their place of appearing...
 
Ok...

Do u know how to add a control to a form by code?
It's the same way but in this case you'll have to do it with a Form and set that "special" property (TopLevel) to False.

That's it... nothing more... If u want to make it look like a panel set the Form border to None.


Got it?
If not try to add a button control into a form by code.
If u still can't manage it I'll try to find some time to send u some code ok?


:D Get your hands on it!!
 
Back
Top