size question,

  • Thread starter dragonslayer008
  • Start date
D

dragonslayer008

Hi,

I have a form with two controls on it. One is just a panel where I
will put buttons and slider controls eventually. The other is a
custom control which draws some output. I have docked the panel to
the left of the form, and I dock the custom control to "fill".

I was trying to center some graphics in the custom control, but it was
off center. The reason is because the Width and Height of the control
is set as if the panel wasn't there--as if the custom control filled
the whole form area.

How do I fix this?
 
M

Michael C

Hi,

I have a form with two controls on it. One is just a panel where I
will put buttons and slider controls eventually. The other is a
custom control which draws some output. I have docked the panel to
the left of the form, and I dock the custom control to "fill".

I was trying to center some graphics in the custom control, but it was
off center. The reason is because the Width and Height of the control
is set as if the panel wasn't there--as if the custom control filled
the whole form area.

You have to move the panel to be the front of the z order I believe.
(Tools-Order-Bring to Front).

Michael
 

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

Top