Click here to Skip to main content
6,822,123 members and growing! (17,344 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, .NETCF, .NET1.1, PocketPC-2002, WinMobile2003VS.NET2003, Dev
Posted:14 Mar 2005
Views:86,806
Bookmarked:53 times
printPrint   add Share
      Discuss Discuss   Broken Article?Report  
7 votes for this article.
Popularity: 3.38 Rating: 4.00 out of 5

1

2
3 votes, 42.9%
3
1 vote, 14.3%
4
3 votes, 42.9%
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


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
Occupation: Web Developer
Location: Malaysia Malaysia

Other popular Mobile Development articles:

  • Writing Your Own GPS Applications: Part 2
    In part two of the series, the author of "GPS.NET" teaches developers how to write GPS applications suitable for the real world by mastering GPS precision concepts. Source code includes a working NMEA interpreter and sample high-precision application in C# and VB.NET.
  • Writing Your Own GPS Applications: Part I
    What is it that GPS applications need to be good enough to use for in-car navigation? Also, how does the process of interpreting GPS data actually work? In this three-part series, I will cover both topics and give you the skills you need to write a commercial-grade GPS application.
  • Learn How to Find GPS Location on Any SmartPhone, and Then Make it Relevant
    A step by step tutorial for getting GPS from any SmartPhone, even without GPS built in, and then making location useful.
  • Windows Mobile, iPhone, Android - Marketplace Comparison
    Detailed comparison between Windows Mobile Marketplace, Apple's iPhone AppStore and Android Market from developer point of view.
  • iPhone UI in Windows Mobile
    It's an interface that works with transparency effects. As a sample I used an interface just like the iPhone one. In this tutorial I am explaining how simple is working with transparency on Windows Mobile.
Article Top
You must Sign In to use this message board.
FAQ FAQ 
 
Noise Tolerance  Layout  Per page   
 Msgs 1 to 24 of 24 (Total in Forum: 24) (Refresh)FirstPrevNext
GeneralThanks again Pinmemberadrienf_696:05 12 Nov '09  
GeneralThanks Pinmemberminity12:17 31 Jul '08  
GeneralAn other way to full screen PinmemberAndy Zhang21:25 17 Oct '07  
GeneralRe: An other way to full screen Pinmember[ .:: bicodeR ::. ]11:06 6 Dec '07  
GeneralEasy way to full screen in C# Pinmemberomanni5:12 29 Aug '07  
GeneralFSEngine remains active PinmemberCHP79135:07 23 Feb '07  
Generalthe code in C# Pinmemberalex_boyer0:43 10 Feb '06  
GeneralRe: the code in C# Pinmemberhackzai16:12 13 Feb '06  
GeneralRe: the code in C# Pinmemberdanyoh20:02 13 Dec '06  
GeneralRe: the code in C# Pinmemberram krishna pattnayak23:23 25 Mar '08  
QuestionRe: the code in C# Pinmemberalex_boyer23:48 25 Mar '08  
GeneralRe: the code in C# Pinmemberram krishna pattnayak1:32 26 Mar '08  
GeneralRe: the code in C# Pinmemberalex_boyer8:09 26 Mar '08  
GeneralRe: the code in C# Pinmemberzkshadow17:33 7 Jul '09  
QuestionFSEngine in C# Pinmemberjamo7722:28 8 Jan '06  
GeneralFrom microsoft docs... save you some time PinsussJason Allen Smith11:40 21 Jun '05  
GeneralRe: From microsoft docs... save you some time PinsussAnonymous8:29 12 Jul '05  
GeneralThis does not work all time Pinmemberxbertx111:57 23 May '06  
GeneralRe: This does not work all time Pinmemberstefankruzel0:11 7 Dec '06  
GeneralRe: This does not work all time Pinmemberc01mr5:54 18 Jan '07  
GeneralRe: This does not work all time Pinmemberstefankruzel1:15 19 Jan '07  
GeneralRe: This does not work all time Pinmemberentraped.isoLated1:32 31 Jul '07  
GeneralGood job. PinmemberSpeedySpeedy22:29 22 Mar '05  
GeneralRe: Good job. Pinmemberc01mr5:53 18 Jan '07  

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

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

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