Reputation: 11
Upvotes: 0
Views: 12887
Reputation: 28586
Use Anchor
or Dock
properties. To see the console window in Visual Studio go to the menu View and there you should check displaying "Output".
Upvotes: 2
Reputation: 59685
To resize a control when the parent control size changed you can use the Control.Anchor
property.
To get a console window for a WinForms application just go to Project Properties and change Output type in the Application tab from Windows Application to Console Application.
Upvotes: 3
Reputation: 54764
Anchor
and Dock
properties on the panel. These let the panel change its size along with the form; you won't need to write any code.Debug.WriteLine
instead.Upvotes: 5
Reputation: 18964
Easiest way to get your Panel to resize is to Anchor or Dock it into the form. Play with the properties pane a bit and you should see how it works.
Upvotes: 2