Benj Nunez
unread,May 12, 2009, 8:40:02 PM5/12/09Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML Web Services,.NET Remoting
I've seen some code in other sites that distinguishes between
"maximized" and "full screen". With "full screen"
being able to cover the taskbar which is very effective indeed,
especially when you intend to run your program in a kiosk. :)
Anyway, I think I got the answer after inserting this line of code
under the form's load event:
private void Form_Load(object sender, EventArgs e)
{
//For this to work, ensure that the Form has its :
// StartPosition = Manual and WindowsState = Normal
this.Width = Screen.PrimaryScreen.WorkingArea.Width;
this.Height = Screen.PrimaryScreen.WorkingArea.Height;