473,387 Members | 1,481 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 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 6394
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Jan H | last post by:
Background: I am a newbe trying to store the state of an Internet Explorer Application with the use of win32.com and python. I use python 2.3. Problem 1: The state is accessible, but not the...
0
by: Steve McLellan | last post by:
Hi, Is there any problem programatically changing an MDI child form's WindowState fom Minimized to Maximized in one step? Setting to Maximized doesn't seem to do anything (setting it to Normal...
2
by: Adam Godley | last post by:
Hi I have a MainContainer form, and a Picker form (which is NOT an MDIChild). What I need to do is when the MainContainer is minimized, the same happens to the Picker form: basically, the...
0
by: Gav | last post by:
Hi All, I would like my mdichild forms to be all of the same windowstate but I don't want to force them to be one way or another. I would like them to start as maximised but then if the user...
0
by: Max | last post by:
Hello, I'm experiencing some problems when I run a windows forms application with the WindowState set to Maximized on a computer with the DPI settings set to Large size (120 DPI) under The...
0
by: James Ramaley | last post by:
I have a VB.NET user control which pops up a window (a form object) when clicked. The problem is that when the parent form of my user control is maximized, the popup is also maximized. It seems...
2
by: Terry Olsen | last post by:
Using the below code, If I use Me.WindowState=Minimized the program runs fine, but you have the taskbar showing the program running. If I use Me.Hide instead, the program immediately exits. If...
0
by: Magnus Bergh | last post by:
I am trying to use the feature in VS 2005 to use user application settings and bind them to form properties. Got it working well with form location and size. However I am trying to do the same...
4
by: mac | last post by:
Brand Newbie Alert! I am working through the "Build a Program Now!" book by Microsoft Press. The last chapter has a little app that should stay in the system tray when the user clicks on the 'X'...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...

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.