Click here to Skip to main content
Click here to Skip to main content

Full screen feature in .NET Compact Framework

, 14 Mar 2005
Rate this:
Please Sign up or sign in to vote.
Enable full screen mode in .NET compact framework applications.

Introduction

This was the conversion from my previous posted topic Having full screen without accessing the SHFullScreen API. Basically, it remain accessing the same set of native API by means of p/invoke (Platform Invoke).

  • FindWindow
  • MoveWindow
  • GetWindowRect
  • SystemParametersInfo

Using the code

In this conversion, I moved the InitFullScreen and DoFullScreen function into a new class FSEngine. Therefore, all you need to do are the below three steps, then you will be ready to ROCK! :p

First, refer the FSEngine in your project.

    Private fse As FSEngine

Second, instantiate and initialize the FSEngine class.

    ' INSTANTIATE THE FSEngine
    fse = New FSEngine
    ' INITIALIZE THE fse
    fse.InitFullScreen()

Third, switch between full screen and normal mode.

    ' SET FULL SCREEN MODE
    If fse.DoFullScreen(True) = 0 Then
        ' RESIZE YOUR MAIN WINDOW
    End If

    ' RESTORE FROM FULL SCREEN MODE
    If fse.DoFullScreen(False) = 0 Then
        ' RESIZE YOUR MAIN WINDOW
    End If

Please refer to previous topic on Full screen for more information.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

About the Author

CT CHANG
Web Developer
Malaysia Malaysia
Hackzai was graduated from Double-E, and being certified as MCSD (VS6) at spring 2003. But move forward with ASP.NET, VB.NET, C#, Silverlight, LINQ, XML

Comments and Discussions

 
GeneralMy vote of 4 Pinmemberb0bi25-Jul-11 1:06 
GeneralThanks Pinmemberbigbro_198521-Mar-10 11:07 
GeneralThanks again Pinmemberadrienf_6912-Nov-09 5:05 
GeneralThanks Pinmemberminity31-Jul-08 11:17 
GeneralAn other way to full screen PinmemberAndy Zhang17-Oct-07 20:25 
GeneralRe: An other way to full screen Pinmember[ .:: bicodeR ::. ]6-Dec-07 10:06 
GeneralEasy way to full screen in C# Pinmemberomanni29-Aug-07 4:12 
GeneralFSEngine remains active PinmemberCHP791323-Feb-07 4:07 
Generalthe code in C# Pinmemberalex_boyer9-Feb-06 23:43 
GeneralRe: the code in C# Pinmemberhackzai13-Feb-06 15:12 
GeneralRe: the code in C# Pinmemberdanyoh13-Dec-06 19:02 
GeneralRe: the code in C# Pinmemberram krishna pattnayak25-Mar-08 22:23 
QuestionRe: the code in C# Pinmemberalex_boyer25-Mar-08 22:48 
GeneralRe: the code in C# Pinmemberram krishna pattnayak26-Mar-08 0:32 
GeneralRe: the code in C# Pinmemberalex_boyer26-Mar-08 7:09 
GeneralRe: the code in C# Pinmemberzkshadow7-Jul-09 16:33 
QuestionFSEngine in C# Pinmemberjamo778-Jan-06 21:28 
GeneralFrom microsoft docs... save you some time PinsussJason Allen Smith21-Jun-05 10:40 
GeneralRe: From microsoft docs... save you some time PinsussAnonymous12-Jul-05 7:29 
GeneralThis does not work all time Pinmemberxbertx123-May-06 10:57 
GeneralRe: This does not work all time Pinmemberc01mr18-Jan-07 4:54 
GeneralRe: This does not work all time Pinmemberentraped.isoLated31-Jul-07 0:32 
GeneralGood job. PinmemberSpeedySpeedy22-Mar-05 21:29 
GeneralRe: Good job. Pinmemberc01mr18-Jan-07 4:53 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

| Advertise | Privacy | Mobile
Web02 | 2.8.140721.1 | Last Updated 14 Mar 2005
Article Copyright 2005 by CT CHANG
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid