question on docking

  • Thread starter Thread starter Uri Dor
  • Start date Start date
U

Uri Dor

(sorry if you see this message twice - I got a "message expired" on my
last post)

Hi,

My GUI is driving me crazy. It's a little complicated, so I'll explain
the part that I find troubling:
I have a Panel which includes a UserControl of mine. The UserControl is
put in the Panel at runtime.
Although UserControl has Dock=Fill, resizing the Panel doesn't resize
the UserControl. (I check by hitting a breakpoint and using the
Immediate window)

How is this possible? Is there some other property I should set?
 
Hello,

Uri Dor said:
My GUI is driving me crazy. It's a little complicated,
so I'll explain the part that I find troubling:
I have a Panel which includes a UserControl of mine.
The UserControl is put in the Panel at runtime.
Although UserControl has Dock=Fill, resizing the Panel
doesn't resize the UserControl. (I check by hitting a
breakpoint and using the Immediate window)

Try to anchor the control to all 4 borders.
 
Back
Top