Re: newbie form question

From: Mikhail Fedosov (noemail_at_mail.ru)
Date: 09/20/04


Date: Mon, 20 Sep 2004 23:53:08 +0400

Did you set the Anchor property of Panel to (AnchorStyles.Top |
AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right) ?

I suppose if you set this property correctly you'll get rid of your
problem. In this case Panel will follow the parent (user control) size.

On Mon, 20 Sep 2004 11:20:18 -0700, <Stephanie_Stowe@IDX.COM> wrote:

> I have a form with a treeview on it. This form also has a user control.
> This user control has a panel with controls in it (a couple of textboxes
> and a ComponentOne TrueDB Grid). It is lovely. Except that when I resize
> the form, the panel does not present scrollbars. I have the panel's
> autoscroll property set to true. I went into the user control in the
> designer. If I resize the panel itself, the scrollbars automatically
> appear. And that is lovely. If I resize the control itself, the
> scrollbars
> do not appear. This makes sense to me. The panel does not know it's
> container was resized. How do I tell it?
>
> Thanks
>
> Stephanie



Relevant Pages

  • newbie form question
    ... This user control has a panel with controls in it (a couple of textboxes ... If I resize the panel itself, the scrollbars automatically ...
    (microsoft.public.dotnet.framework.windowsforms)
  • Re: Setting Proportional Width of Bound GridView
    ... I'm afraid there is no way how to use proportional size and scrollbars ... If I set the Panel width explicitly, it all works OK, but then when I ... resize the browser window, the panel doesn't resize. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: newbie form question
    ... Then I set the Anchor property of the user control on the form. ... In this case Panel will follow the parent size. ... If I resize the panel itself, ...
    (microsoft.public.dotnet.framework.windowsforms)
  • Re: Panel with Close button custom control
    ... Just create a user control with the button on it that you want. ... Find great Windows Forms articles in Windows Forms Tips and Tricks ... The panel never closes, the close button click event closes the form not ...
    (microsoft.public.dotnet.framework.windowsforms)
  • Re: Need an alternative to multiple inheritance
    ... Whereas with a panel, panel specific properties may have ended up being set ... But you are right, in most cases that wouldn't matter, and inheriting from ... >> Create a user control.Add MyPanel to the user control, ... >> Create properties inside this user control to expose whatever properties ...
    (microsoft.public.dotnet.languages.vb)