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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top