This project has moved. For the latest updates, please go here.

System.Windows.Forms.Form Extension Methods

Form.ToFullScreen Method

A Form extension method that set the window form to full screen mode to the specified screen.

Syntax

void ToFullScreen(Form form,int screen)

Parameters

form
The form to act on.
screen
(Optional) the screen to act on.

Examples


 // Copyright (c) 2013 Jonathan Magnan (http://zzzportal.com)
 // All rights reserved.
 // Licensed under MIT License (MIT)
 // License can be found here: https://zextensionmethods.codeplex.com/license
 
 using System.Windows.Forms;
 using Microsoft.VisualStudio.TestTools.UnitTesting;
 using Z;
 
 namespace ExtensionMethods.Examples
 {
     [TestClass]
     public class System_Windows_Forms_Form_ToFullScreen
     {
         [TestMethod]
         public void ToFullScreen()
         {
             // Type
             var @this = new Form();
 
             // Examples
             @this.ToFullScreen(); // The Form is now in FullScreen
         }
     }
 }
                

Last edited Nov 23, 2013 at 7:57 PM by Jonathan_Magnan, version 1