WindowState

  • Thread starter Thread starter Pohihihi
  • Start date Start date
P

Pohihihi

I have tried putting the following line in almost every possible place but
it does not work.

this.WindowState = FormWindowState.Maximized;

This just do not work. How to maximize form window if this is not the right
way to do.
 
Pohihihi said:
I have tried putting the following line in almost every possible place but
it does not work.

this.WindowState = FormWindowState.Maximized;

This just do not work. How to maximize form window if this is not the right
way to do.
What exactly are these "possible places"? Without writing anything more,
we probably can't be of much help. I've tried and it simply works.
 
Form_Load
InitializeConponent
etc

I am not sure but when I restart my machine things are back to normal. Maybe
a bug or some problem in VS.
 
Did you read the description of WindowState in the docs? They clearly state
that this property is only updated after a form.Show or after the form is
transitioning from one state to another.

Willy.
 
yes I have that is why I was perplexed why it is not happening the way it is
described.
 
Back
Top