Link to home
Start Free TrialLog in
Avatar of IT79637
IT79637Flag for United States of America

asked on

Problem setting panel height

I'm having trouble adjusting the height of Panel1 on Form1.  I want to drag it down a bit to cover unused space on Form1.  See screen shot below.  The area I want to drag Panel1 over is where you see the "layout dots" on Form1.  I want to butt it up against the stuff you see at the very bottom of the form.

Here are the layers from bottom to top pm the top of screen shot, not the bottom:
1. Form1
2. Panel1
3. PageControl1
4. TabSheet1 to TabSheet6 (6 tabs)
5. TImageMan1 on TabSheet1 (www.data-tech.com)

When I drag Panel1 down, it snaps back to the original location.  

How can I get layers 2 through 5 a bit lower on the form?

Thanks.



Form11.png
ASKER CERTIFIED SOLUTION
Avatar of senad
senad
Flag of Slovenia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I suspect that what is happening is that you think you are dragging the panel down, but in fact you are dragging the component that sits inside the panel (look at the Object Inspector to see which component is selected).  This usually happens if that "child" component is set to align with the client (the panel in this case).  What I find useful when developing where alignment is set to alclient is to set AlignWithMargins to True and set a small margin in place between the containing component and the Panel, just enough to select the panel rather than the item contained within it.  The other way is to explicitly select the panel by choosing it in the pull-down at the top of the Object Inspector.
Avatar of Geert G
it's indeed the inner object you are trying to grow
if you look at your form closely, you can see a small border of the panel

it's also easier to set the object inspector to stay on top
reselect the object you want to drag in the form, look at the name of the currently selected component
press esc to select the parent component
examine the component name again in the object inspector
repeat the process, esc - check name to get to the component you need

a other thing is the right-click options, sometimes you can't click the component without selecting a other one
(like the old notebook)
use the previous steps to select the component,
then use the keyboard shortcut for opening the right-click options
Avatar of IT79637

ASKER

Worked perfect first time.
When I tried to stretch the layers down, I made sure Panel1 was selected in the object inspector.