How: Place child controls on the Panel control?

T

Tia Carr

When I try to place a child control on top of a panel control, the mouse
pointer remains as a pointer instead of changing to a cross.

I tried both the ShowGrid on/off, doesn't make a difference.. Can someone
please point out the obvious... I have the 2002 version of VS.NET.

TIA
 
K

Kevin Williams

Do you want the child control "inside" the panel, or "on top" of the
panel?

If you want it absolutely positioned on top, you can click on the
child control and use the arrow keys to move it over the panel.
Alternatively, you can edit the style attribute in HTML view (TOP and
LEFT attributes) to absolutely position the child control wherever you
want. Make sure the z-index for the child control is greater than
that of your panel.

If you want the child control INSIDE the Panel, you should just be
able to drag-and-drop it on the Panel and it should arrange itself
within automatically. Unless by "Panel" you mean "Panel-derived
custom control" which doesn't work that way (sorry, I don't remember
the specifics of working with Panel-derived controls now other than
they are a pain <grin>).

-Kevin
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,581
Members
45,056
Latest member
GlycogenSupporthealth

Latest Threads

Top