Expanding user controls

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: OpticTygre (optictygre_at_adelphia.net)
Date: 07/22/04


Date: Thu, 22 Jul 2004 09:24:30 -0400

I have a treeview and a panel inside of a form. Depending on what item in
the treeview is clicked, different user controls get loaded into the panel.
If the form is resized, or maximized the panel stretches with the form, but
the user controls stay static. Is there a way I can stretch the user
control forms automatically (as well as reposition all objects on the user
controls) when the size of the panel changes? Thanks for any advice.

-Jason



Relevant Pages

  • Re: Expanding user controls
    ... and handle the controls contained within the user controls ... > I have a treeview and a panel inside of a form. ... > If the form is resized, or maximized the panel stretches with the form, ...
    (microsoft.public.dotnet.languages.vb)
  • Re: two Windows message loops in .NET 2.0?
    ... If you made each of the panels user controls instead of something ... The right "panel" contains a mask that starts a series of modal dialoges. ...
    (microsoft.public.dotnet.framework.windowsforms)
  • Re: user control host form gets disabled
    ... > My main form contains a panel which I use to host user controls. ... > public class MyControl: UserControl ... > private void Remove_Click ...
    (microsoft.public.dotnet.framework.windowsforms)
  • Re: "Global" objects
    ... The Main form is declaring an object (doesn't really matter what it ... these user controls are NOT placed onto the panel on the Main ...
    (microsoft.public.dotnet.framework.windowsforms)
  • Re: "Global" objects
    ... does for purposes of this discussion) and a public method to return it. ... these user controls are NOT placed onto the panel on the Main ...
    (microsoft.public.dotnet.framework.windowsforms)