un-Full screen

A

angus

Hi All,

After making a full screen for the program, by

this.WindowState = FormWindowState.Maximized;
this.FormBorderStyle = FormBorderStyle.None;
this.ControlBox = false;
this.Menu = null;

How can i change screen back to normal?

I have tried calling the ControlBox and Menu back by
this.ControlBox = true;
this.Menu = new Menu();

but failed.
 
G

Guest

Forgot to add that you will also have to set the FormBorderStyle to the
original value.

HTH,
Rakesh Rajan
 
H

Herfried K. Wagner [MVP]

angus said:
After making a full screen for the program, by

this.WindowState = FormWindowState.Maximized;
this.FormBorderStyle = FormBorderStyle.None;
this.ControlBox = false;
this.Menu = null;

\\\
this.WindowState = FormWindowState.Normal;
this.FormBorderStyle = ...; // Previous border style...
this.ControlBox = true;
this.Menu = this.MainMenu1;
///
 
J

Jacobo Rodriguez Villar

Hello,

Regarding with this full screen speaking, is there a way in the
framework .net to change the resolution and color depth without falling
to Win32 with ChangeDisplaySettings function?
\\\
this.WindowState = FormWindowState.Normal;
this.FormBorderStyle = ...; // Previous border style...
this.ControlBox = true;
this.Menu = this.MainMenu1;
///


--
Jacobo Rodríguez Villar

TyphoonLabs Lead Programmer

http://www.typhoonlabs.com
 
H

Herfried K. Wagner [MVP]

Jacobo Rodriguez Villar said:
Regarding with this full screen speaking, is there a way in the
framework .net to change the resolution and color depth without falling
to Win32 with ChangeDisplaySettings function?

No, but it's not recommended to change the screen resolution by a program.
 
J

Jacobo Rodriguez Villar

I'm 3D graphics programmer (games, CAD, and so on), and sometimes I need
change the resolution for the fullscreen modes. If I need do that, how
can I do it through a safe way? I only know ChangeDisplaySettings and
EnumDisplaySettins way, and if I need use them, then I should use them.
No, but it's not recommended to change the screen resolution by a program.


--
Jacobo Rodríguez Villar

TyphoonLabs Lead Programmer

http://www.typhoonlabs.com
 
H

Herfried K. Wagner [MVP]

Jacobo Rodriguez Villar said:
I'm 3D graphics programmer (games, CAD, and so on),
and sometimes I need change the resolution for the
fullscreen modes. If I need do that, how can I do

As always, there are some situations when my rule does not apply.
it through a safe way? I only know ChangeDisplaySettings
and EnumDisplaySettins way, and if I need use them, then I
should use them.

I would use p/invoke on these functions to change the screen resolution.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top