5,693,062 members and growing! (21,163 online)
Email Password   helpLost your password?
Platforms, Frameworks & Libraries » Mobile Development » Applications     Intermediate

Full screen feature in .NET Compact Framework

By hackzai

Enable full screen mode in .NET compact framework application.
VB, Windows, .NET CF, CE .NET 4.0, CE .NET 4.1, CE .NET 4.2, PocketPC 2002, WinMobile2003, .NET 1.1, Win Mobile, .NET, MobileVisual Studio, VS.NET2003, Dev

Posted: 14 Mar 2005
Updated: 14 Mar 2005
Views: 67,040
Bookmarked: 36 times
Announcements
Loading...



Search    
Advanced Search
Sitemap
6 votes for this Article.
Popularity: 2.98 Rating: 3.83 out of 5
0 votes, 0.0%
1
0 votes, 0.0%
2
3 votes, 50.0%
3
1 vote, 16.7%
4
2 votes, 33.3%
5

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 has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here

About the Author

hackzai


克仔 was graduated from Double-E, and being certified as MCSD (VS6) at spring 2003.
Occupation: Web Developer
Location: Malaysia Malaysia

Other popular Mobile Development articles:

Article Top
Sign Up to vote for this article
You must Sign In to use this message board.
FAQ FAQ Noise ToleranceSearch Search Messages 
 Layout  Per page   
 Msgs 1 to 22 of 22 (Total in Forum: 22) (Refresh)FirstPrevNext
GeneralThanksmemberminity12:17 31 Jul '08  
GeneralAn other way to full screenmemberAndy Zhang21:25 17 Oct '07  
GeneralRe: An other way to full screenmember[ .:: bicodeR ::. ]11:06 6 Dec '07  
GeneralEasy way to full screen in C#memberomanni5:12 29 Aug '07  
GeneralFSEngine remains activememberCHP79135:07 23 Feb '07  
Generalthe code in C#memberalex_boyer0:43 10 Feb '06  
GeneralRe: the code in C#memberhackzai16:12 13 Feb '06  
GeneralRe: the code in C#memberdanyoh20:02 13 Dec '06  
GeneralRe: the code in C#memberram krishna pattnayak23:23 25 Mar '08  
QuestionRe: the code in C#memberalex_boyer23:48 25 Mar '08  
GeneralRe: the code in C#memberram krishna pattnayak1:32 26 Mar '08  
GeneralRe: the code in C#memberalex_boyer8:09 26 Mar '08  
QuestionFSEngine in C#memberjamo7722:28 8 Jan '06  
GeneralFrom microsoft docs... save you some timesussJason Allen Smith11:40 21 Jun '05  
GeneralRe: From microsoft docs... save you some timesussAnonymous8:29 12 Jul '05  
GeneralThis does not work all timememberxbertx111:57 23 May '06  
GeneralRe: This does not work all timememberstefankruzel0:11 7 Dec '06  
GeneralRe: This does not work all timememberc01mr5:54 18 Jan '07  
GeneralRe: This does not work all timememberstefankruzel1:15 19 Jan '07  
GeneralRe: This does not work all timememberentraped.isoLated1:32 31 Jul '07  
GeneralGood job.memberSpeedySpeedy22:29 22 Mar '05  
GeneralRe: Good job.memberc01mr5:53 18 Jan '07  

General General    News News    Question Question    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

PermaLink | Privacy | Terms of Use
Last Updated: 14 Mar 2005
Editor: Sumalatha K.R.
Copyright 2005 by hackzai
Everything else Copyright © CodeProject, 1999-2008
Web16 | Advertise on the Code Project