PC Review Forums Newsgroups Microsoft DotNet Microsoft Dot NET Framework Forms MinimumSize vs Anchor

Reply

MinimumSize vs Anchor

 
Thread Tools Rate Thread
Old 13-12-2005, 08:22 PM   #1
Lelekács Zoltán
Guest
 
Posts: n/a
Default MinimumSize vs Anchor


Hi,

I have a form with a Vscrollable panel. It has a child control which has
MinimumSize.
When I minimize the form I get OnSizeChanged event with strange width (160)
and height (24). (I think it is the size of the taskbar size of the
form...).
But the child control has MinimumSize and anchored for all direction.
Therefore the "anchor points" have changed. After the restore event the
child control is bigger than its parent excatly with its MinimumSize...

This is a bug in the framework? IS there a good work-around for it?
Thanks in advance.

lelez
-----------------------------------
http://www.lelez.hu
ICQ: 177465172


  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off