473,382 Members | 1,479 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,382 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 6392
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'...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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...

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.