0

I would like to know if it is possible to change the size of the form when it is moved?

What I want to accomplish with this, is that when a user moves the form between 2 different screens the form should change its size to fit the new screen.

I tried with the DragDrop action for the Form but didn't work.

Please help!

  • Check this out: http://stackoverflow.com/questions/254197/how-can-i-get-the-active-screen-dimensions then you should be able to set the form dimensions to that – 3ocene Dec 21 '15 at 21:21

1 Answers1

0

Have you check if Move method can help you ?

    private void Form1_Move(object sender, EventArgs e)
    {
        MessageBox.Show(this.Left.ToString());
    }

The example above prompt the left position of your form, so you can check the current position of your Form and try to resize it if necessary.

Skary
  • 1,322
  • 1
  • 13
  • 40
  • Thank you Skary, that was exactly what I was looking for, and I don't know how I didn't try with that method hahahahaha thanks!!!! – Esteban Lopez Dec 22 '15 at 15:11