<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Zemna.Net &#187; Full-Screen</title>
	<atom:link href="http://www.zemna.net/archives/tag/full-screen/feed" rel="self" type="application/rss+xml" />
	<link>http://www.zemna.net</link>
	<description>Enjoy Your Programming!</description>
	<lastBuildDate>Tue, 07 Sep 2010 01:25:41 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Full-Screen Application</title>
		<link>http://www.zemna.net/archives/109</link>
		<comments>http://www.zemna.net/archives/109#comments</comments>
		<pubDate>Wed, 02 Dec 2009 03:59:55 +0000</pubDate>
		<dc:creator>zemna</dc:creator>
				<category><![CDATA[C#]]></category>
		<category><![CDATA[Full-Screen]]></category>

		<guid isPermaLink="false">http://www.zemna.net/134795</guid>
		<description><![CDATA[Yesterday I posted a quick update to an article I wrote back in 2007 entitled How to make a full-screen Windows app using VB.NET. Aside from 1 or 2 people saying “Oh man why don’t you be a man and write it using C#?” I reckon it’s a good idea to do that anyway. Thanks [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.zemna.net%2Farchives%2F109"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.zemna.net%2Farchives%2F109&amp;source=zemnanet&amp;style=normal&amp;service=TinyURL.com&amp;hashtags=C%23,Full-Screen" height="61" width="50" /><br />
			</a>
		</div>
<p>Yesterday I posted a quick update to an article I wrote back in 2007 entitled <a href="http://digitalformula.net/net-geekery/how-to-make-a-full-screen-windows-app-using-vbnet/" target="_blank">How to make a full-screen Windows app using VB.NET</a>. Aside from 1 or 2 people saying “Oh man why don’t you be a man and write it using C#?” I reckon it’s a good idea to do that anyway. Thanks Scott for the suggestion. <img class="wp-smiley" src="http://digitalformula.net/wp-includes/images/smilies/icon_wink.gif" alt=";)" /> And thanks <a href="http://www.philsversion.com/" target="_blank">Phil</a> for pointing me in the right direction with the DLL import stuff. <img class="wp-smiley" src="http://digitalformula.net/wp-includes/images/smilies/icon_smile.gif" alt=":)" /></p>
<p>So, without any mucking about here’s the exact same complete application example only this time in C#. You can download the application’s source on the <a href="http://digitalformula.net/downloads/">Digital Formula Downloads</a> page or, alternatively, from the <a href="http://digitalformula.net/download/df_fullscreen_demo_cs.zip">application source’s direct link</a>. For those that want to see the main form’s complete source before they download, it can be found at the end of this article.</p>
<p>Please feel to ask any questions necessary. Thanks!</p>
<p>Form1’s complete source:</p>
<pre class="brush: csharp;">
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Runtime.InteropServices;

namespace Play
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        [DllImport (&quot;user32.dll&quot;)]
        private static extern bool SetWindowPos(IntPtr hWnd, IntPtr hWndIntertAfter, int X, int Y, int cx, int cy, int uFlags);
        [DllImport(&quot;user32.dll&quot;)]
        private static extern int GetSystemMetrics(int Which);

        private const int SM_CXSCREEN = 0;
        private const int SM_CYSCREEN = 1;
        private IntPtr HWND_TOP = IntPtr.Zero;
        private const int SWP_SHOWWINDOW = 64;

        public int ScreenX
        {
            get
            {
                return GetSystemMetrics(SM_CXSCREEN);
            }
        }

        public int ScreenY
        {
            get
            {
                return GetSystemMetrics(SM_CYSCREEN);
            }
        }

        private void FullScreen()
        {
            this.WindowState = FormWindowState.Maximized;
            this.FormBorderStyle = FormBorderStyle.None;
            this.TopMost = true;
            SetWindowPos(this.Handle, HWND_TOP, 0, 0, ScreenX, ScreenY, SWP_SHOWWINDOW);
        }

        private void Restore()
        {
            this.WindowState = FormWindowState.Normal;
            this.FormBorderStyle = FormBorderStyle.SizableToolWindow;
            this.TopMost = false;
        }

        private void button1_Click(object sender, EventArgs e)
        {
            FullScreen();
        }

        private void cmdRestore_Click(object sender, EventArgs e)
        {
            Restore();
        }

        private void cmdExit_Click(object sender, EventArgs e)
        {
            Application.Exit();
        }
    }
}
</pre>
<address>출처 : <a href="http://digitalformula.net/development/c-full-screen-application-complete-application-example/" target="_blank">http://digitalformula.net/development/c-full-screen-application-complete-application-example/</a></address>
<address>
</address>
<address>
</address>
<address> </address>
<address> </address>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center shr-bookmarks-bg-shr">
<ul class="socials">
		<li class="shr-comfeed">
			<a href="http://www.zemna.net/archives/109/feed" rel="nofollow" class="external" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://www.zemna.net/archives/109&amp;title=Full-Screen+Application" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://www.zemna.net/archives/109&amp;title=Full-Screen+Application" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-diigo">
			<a href="http://www.diigo.com/post?url=http://www.zemna.net/archives/109&amp;title=Full-Screen+Application&amp;desc=Yesterday%20I%20posted%20a%20quick%20update%20to%20an%20article%20I%20wrote%20back%20in%202007%20entitled%20How%20to%20make%20a%20full-screen%20Windows%20app%20using%20VB.NET.%20Aside%20from%201%20or%202%20people%20saying%20%E2%80%9COh%20man%20why%20don%E2%80%99t%20you%20be%20a%20man%20and%20write%20it%20using%20C%23%3F%E2%80%9D%20I%20reckon%20it%E2%80%99s%20a%20good%20idea%20to%20do%20that%20anyway.%20Thanks%20Scott%20for%20the%20suggestio" rel="nofollow" class="external" title="Post this on Diigo">Post this on Diigo</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.google.com/buzz/post?url=http://www.zemna.net/archives/109&amp;imageurl=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-misterwong">
			<a href="http://www.mister-wong.com/addurl/?bm_url=http://www.zemna.net/archives/109&amp;bm_description=Full-Screen+Application&amp;plugin=sexybookmarks" rel="nofollow" class="external" title="Add this to Mister Wong">Add this to Mister Wong</a>
		</li>
		<li class="shr-mixx">
			<a href="http://www.mixx.com/submit?page_url=http://www.zemna.net/archives/109&amp;title=Full-Screen+Application" rel="nofollow" class="external" title="Share this on Mixx">Share this on Mixx</a>
		</li>
		<li class="shr-reddit">
			<a href="http://reddit.com/submit?url=http://www.zemna.net/archives/109&amp;title=Full-Screen+Application" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-technorati">
			<a href="http://technorati.com/faves?add=http://www.zemna.net/archives/109" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="shr-twitter">
			<a href="http://twitter.com/home?status=Full-Screen+Application+-+http://tinyurl.com/yzgl5sq&amp;source=shareaholic" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>

]]></content:encoded>
			<wfw:commentRss>http://www.zemna.net/archives/109/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
