full window

  • Thread starter Thread starter Pohihihi
  • Start date Start date
P

Pohihihi

I have a application that should cover the whole monitor (not just max state
of the window). It should also cover the desktop status bar below the
monitor. How can i do so?
 
Simply do the following
public class SomeForm: System.Windows.Forms.Form {

public void FullScreen() {
Visible = false;
FormBorderStyle = FormBorderStyle.None;
WindowState = FormWindowState.Maximized;
Visible = true;
}
}

regards
 
Ashura said:
Simply do the following
public class SomeForm: System.Windows.Forms.Form {

public void FullScreen() {
Visible = false;
FormBorderStyle = FormBorderStyle.None;
WindowState = FormWindowState.Maximized;
Visible = true;
}
}

Just to add to Ashura's reply. Note that you won't have a caption bar,
so make sure you have some other way to close the window (a context
menu, for example).

Richard
 
Back
Top