C# Source Code Viewer
View C# Source Code
Article Categories:
.Net Framework
.Net Framework 1.1
ADO.NET
ASP.NET
Assemblies
Asynchronous Methods
C#
Collections
Delegates
Events
Pocket PC
Regular Expressions
Smart Devices
SQL Server
Visual C#
Visual Studio .NET
Visual Studio .NET 2003
Windows Forms
XML
C# .Net Fun Menu
View Current Page's ASP.NET Source Code
C# Reference
C# Study Flash Cards
Valuable Links
Contact Us
Site Map
Mike's Portfolio
C# Reference Search:
Full Text Search:
Articles by Author:
Mike Gonzalez
Code Examples (zipped):
MTGUpTime.zip
ThreadLockingE...
ThreadingExamp...
RemotingExampl...
ErrorProviderE...
DelegateExampl...
CustomArrayLis...
AsynchronousEx...
C# .Net Source Code for /Articles/SmartDevices/PPCHelloWorld.aspx
This ASP.NET page was written by Mike Gonzalez. <% @ Page Language="C#" Debug="True" %> <% @ Register TagPrefix="DotNetFun" TagName="Header" Src="/Header.ascx" %> <% @ Register TagPrefix="DotNetFun" TagName="Footer" Src="/Footer.ascx" %>
<%# CtrlHeader.ArticleTitle %>
<%# CtrlHeader.ArticleDescription %>
Category:
Posted
<%# CtrlHeader.AuthorDate.ToShortDateString() %>,
By
<%# CtrlHeader.AuthorName %>
" />
My First Pocket PC Application, Hello World!
Prerequisites:
.Net Framework 1.1 (this usually installs by default with VS.NET 2003).
You can get Visual Studio .NET 2003 here.
Visual Studio .NET 2003.
You can get .NET 1.1 here.
Startup Visual Stidio .NET 2003
Choose
Smart Device Application
from the New Project dialog box.
Enter
PPCHelloWorld
for the project name.
Click on
OK
.
Set
What platform do you want to target?
to
Pocket PC
and
What project type do you want to create?
to
Windows Application
.
Click on
OK
.
Click on the
mainMenu1
control icon toward the bottom then click on the menu item box toward the bottom of the Pocket PC form window then type
Hello World!
.
Double-click on the
Hello World!
menu to create a click event handler then type in the following code:
MessageBox.Show("Hello World!");
. The event handler method should like like this:
private void menuItem1_Click(object sender, System.EventArgs e) { MessageBox.Show("Hello World!"); }
Press the
F5
key to test the application.
Choose
Pocket PC Emulator 2002
.
Click on
Deploy
(it will take a while so be patient).
Test the application by clicking on the
Hello World!
menu at the bottom of the app.
Close the
Pocket PC 2002
window.
Choose
Turn off emulator
(otherwise you may not be able to test it again - a sharing violation may occur) from the drop-down menu.