471,319 Members | 3,253 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,319 software developers and data experts.

WindowState

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.
Dec 14 '05 #1
4 6297
Pohihihi wrote:
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.
Dec 14 '05 #2
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.
"Stefan Simek" <si**********@triaxis.nospam.sk> wrote in message
news:eI*************@TK2MSFTNGP12.phx.gbl...
Pohihihi wrote:
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.

Dec 15 '05 #3
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.

"Pohihihi" <no*****@hotmail.com> wrote in message
news:eb*************@TK2MSFTNGP15.phx.gbl...
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.
"Stefan Simek" <si**********@triaxis.nospam.sk> wrote in message
news:eI*************@TK2MSFTNGP12.phx.gbl...
Pohihihi wrote:
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.


Dec 15 '05 #4
yes I have that is why I was perplexed why it is not happening the way it is
described.

"Willy Denoyette [MVP]" <wi*************@telenet.be> wrote in message
news:Ow**************@TK2MSFTNGP09.phx.gbl...
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.

"Pohihihi" <no*****@hotmail.com> wrote in message
news:eb*************@TK2MSFTNGP15.phx.gbl...
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.
"Stefan Simek" <si**********@triaxis.nospam.sk> wrote in message
news:eI*************@TK2MSFTNGP12.phx.gbl...
Pohihihi wrote:
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.




Dec 16 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Jan H | last post: by
reply views Thread by Steve McLellan | last post: by
2 posts views Thread by Adam Godley | last post: by
reply views Thread by Gav | last post: by
reply views Thread by Max | last post: by
reply views Thread by James Ramaley | last post: by
2 posts views Thread by Terry Olsen | last post: by
reply views Thread by Magnus Bergh | last post: by
reply views Thread by rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.