Right event for resizing

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello:

I have a form with some controls.

I need to resize the form with controls
depending on monitor size.

This resizing must be done before form
will be visible.

I'm planning to do it in Form_Load(...)
but I'm sure its' the best place for it.

Any suggestions ?

thank you,
dave
 
Hi Dave!

The Load event should be fine. Load is raised before the Form is shown to the user.

You can get the screen's Rectangle, considering that you are working on a single monitor, using the following code:

System.Windows.Forms.Screen.PrimaryScreen.WorkingArea
 
Back
Top