How to block the application from minimizing C #

0

I have a windows form app that after opening a new screen it minimizes itself and I can not figure out why.

All the screens I call as follows

Home PagHome = new Home();
PagHome.Show();
this.Close();

And when I start the forms, I put in the load the following code

  this.WindowState = FormWindowState.Maximized;
  this.FormBorderStyle = FormBorderStyle.None;
  this.MaximizeBox = false;
  this.MinimizeBox = false;

No error is appearing, and the screen is opening, but after opening it is minimizing.

Does anyone have any idea what it might be?

    
asked by anonymous 06.10.2018 / 15:10

0 answers