Click here to Skip to main content
Licence CPOL
First Posted 14 Mar 2005
Views 103,278
Downloads 341
Bookmarked 55 times

Full screen feature in .NET Compact Framework

By | 14 Mar 2005 | Article
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

hackzai

Web Developer

Malaysia Malaysia

Member

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

Sign Up to vote   Poor Excellent
Add a reason or comment to your vote: x
Votes of 3 or less require a comment

Comments and Discussions

 
You must Sign In to use this message board. (secure sign-in)
 
Search this forum  
 FAQ
    Noise  Layout  Per page   
  Refresh
GeneralMy vote of 4 Pinmemberb0bi1:06 25 Jul '11  
GeneralThanks Pinmemberbigbro_198511:07 21 Mar '10  
GeneralThanks again Pinmemberadrienf_695:05 12 Nov '09  
GeneralThanks Pinmemberminity11:17 31 Jul '08  
GeneralAn other way to full screen PinmemberAndy Zhang20:25 17 Oct '07  
GeneralRe: An other way to full screen Pinmember[ .:: bicodeR ::. ]10:06 6 Dec '07  
GeneralEasy way to full screen in C# Pinmemberomanni4:12 29 Aug '07  
GeneralFSEngine remains active PinmemberCHP79134:07 23 Feb '07  
Generalthe code in C# Pinmemberalex_boyer23:43 9 Feb '06  
GeneralRe: the code in C# Pinmemberhackzai15:12 13 Feb '06  
GeneralRe: the code in C# Pinmemberdanyoh19:02 13 Dec '06  
GeneralRe: the code in C# Pinmemberram krishna pattnayak22:23 25 Mar '08  
QuestionRe: the code in C# Pinmemberalex_boyer22:48 25 Mar '08  
GeneralRe: the code in C# Pinmemberram krishna pattnayak0:32 26 Mar '08  
GeneralRe: the code in C# Pinmemberalex_boyer7:09 26 Mar '08  
GeneralRe: the code in C# Pinmemberzkshadow16:33 7 Jul '09  
QuestionFSEngine in C# Pinmemberjamo7721:28 8 Jan '06  
GeneralFrom microsoft docs... save you some time PinsussJason Allen Smith10:40 21 Jun '05  
GeneralRe: From microsoft docs... save you some time PinsussAnonymous7:29 12 Jul '05  
GeneralThis does not work all time Pinmemberxbertx110:57 23 May '06  
GeneralMessage Removed Pinmemberstefankruzel23:11 6 Dec '06  
GeneralRe: This does not work all time Pinmemberc01mr4:54 18 Jan '07  
GeneralMessage Removed Pinmemberstefankruzel0:15 19 Jan '07  
GeneralRe: This does not work all time Pinmemberentraped.isoLated0:32 31 Jul '07  
GeneralGood job. PinmemberSpeedySpeedy21:29 22 Mar '05  

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.

Permalink | Advertise | Privacy | Mobile
Web04 | 2.5.120528.1 | Last Updated 14 Mar 2005
Article Copyright 2005 by hackzai
Everything else Copyright © CodeProject, 1999-2012
Terms of Use
Layout: fixed | fluid