Full screen
-
I read the article http://www.codeproject.com/csharp/fullscreenmode.asp[^] but this is nasty way to do that. Maybe C# 2.0 has already FullScreen property in some class for I could use it?
You can set the WindowState property to Maximized. Or do you want the black backgound with your app in the center?
-
I read the article http://www.codeproject.com/csharp/fullscreenmode.asp[^] but this is nasty way to do that. Maybe C# 2.0 has already FullScreen property in some class for I could use it?
-
You can set the WindowState property to Maximized. Or do you want the black backgound with your app in the center?
-
This works for full screen mode for me:
private void Form1_Load(object sender, System.Windows.Forms.KeyEventArgs e)
{
this.Bounds = Screen.AllScreens[0].Bounds;
this.TopMost = true;
}Does that help?
-
Perhaps I'm missing something :confused: I'm always looking to fill in the gaps in my knowledge. Both of these seem to produce the same results. WindowState = FormWindowState.Maximized; TopMost = true; Bounds = Screen.AllScreens[0].Bounds; TopMost = true;
-
Yes, exactly, thank you :) Do you maybe know how to get rid of window bounds and the upper strip with name of the form and min, max and close buttons?
-
Perhaps I'm missing something :confused: I'm always looking to fill in the gaps in my knowledge. Both of these seem to produce the same results. WindowState = FormWindowState.Maximized; TopMost = true; Bounds = Screen.AllScreens[0].Bounds; TopMost = true;
First of all, u didnt said that I should used the line: TopMost = true; Second of all, the solution produced by that guy isn`t correct in 100% too. Maximization is an effect that u can achive by clicking appriopriate button on the top your window. Fullscreen gives ur application full screen, so no borders around, no start button, no the upper strip. U got every pixel on the screen up to u. Many computer games offer full screen, while many windows applications (form oriented) offers just a maximization. cheers
-
First of all, u didnt said that I should used the line: TopMost = true; Second of all, the solution produced by that guy isn`t correct in 100% too. Maximization is an effect that u can achive by clicking appriopriate button on the top your window. Fullscreen gives ur application full screen, so no borders around, no start button, no the upper strip. U got every pixel on the screen up to u. Many computer games offer full screen, while many windows applications (form oriented) offers just a maximization. cheers
-Yoyosh- wrote:
First of all, u didnt said that I should used the line: TopMost = true;
Nor did you ask for TopMost.
-Yoyosh- wrote:
Maybe C# 2.0 has already FullScreen property in some class for I could use it?
You also didn't specify that you wanted no borders. We'll just say it was miscommunication and move on.:)