VESA eBox-2300 Technical Information Page 32

  • Download
  • Add to my manuals
  • Print
  • Page
    / 53
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 31
Part 7 – C# Application with Visual Studio 2005
Visual Studio 2005 can be used to develop native and managed code applications for CE 6.0.
This section will go thru the process to show how to connect the eBox-2300 to a development
station with Visual Studio 2005 while developing a managed code application using Visual Basic
or Visual C#. For the exercise in this section, we will use Visual C#. The steps should be
similar for developing with Visual Basic within Visual Studio 2005.
Note: Project files for this exercise are provided in the ..\VC#_Sample directory on the CD.
Step 1: Create a New Visual Studio 2005 C# Project
From Visual Studio 2005 IDE, Select File | New | Project, the following new project screen will
appear.
Fig. 29 - VS2005 IDE / New Project
On the left hand side, expand “Visual C#” and “Smart Device” folders to select “Windows CE
5.0. On the right side of the screen, select “Device Application”, enter “eBox2300_Demo” as
the project name and click “Ok”.
After the project is created, let’s add some simple code to the application.
Resize the Form to a smaller size (320x240) to make it easy to see the application when it
runs on CE 6.0.
Change the Form caption to “eBox2300 Visual C# Demo”
Add a text-box to the form, change the name to textHelloWorld, and clear the content in
the text-box
Add a button to the form, change the name to buttonHelloWorld, and change the text on
the button’s caption to “Hello World”
Add the following code to the “buttonHelloWorld_Click” event.
textHelloWorld.Text = "Hello World.";
eBox-2300 Windows Embedded CE 6.0 JumpStart rev 3.5 Page 32 of 53
Page view 31
1 2 ... 27 28 29 30 31 32 33 34 35 36 37 ... 52 53

Comments to this Manuals

No comments