|
Development | Starting Out
Use eVB to create a Menubar on your Pocket PC.
Written by Arnold Cota
[author's bio]
[read 43225 times]
Edited by Derek
Page 1
Page 2
[Download the pdf]
The MenuBar control is used within eVB to add menus
to your application. In this tutorial I will cover the creation and use
of text menus.
Create a new project
To begin, lets create a new project:
Using the eVB main menu, File->New Project
open the New Project Dialog.

Select Windows CE for the Pocket PC project and click OK.
Add the MenuBar control
Next, we need to add the control to the project as it is
not available by default. To add a new control to the available controls
access the eVB menu Project->Components
This will bring up a list of the install components and
allow you to add one or more to your toolbox for use in your application.

Select Microsoft PocketPC MenuBar Control 3.0 and click
OK. To display the control toolbox access the eVB menu View->Toolbox.
This will display the controls toolbox on the left side of your screen.
Add an instance of MenuBar to your form
To add an instance of the control to your project, you can
simply double-click on the MenuBar icon in the toolbox. You should see an instance of MenuBar
on your main (only) form now.

I usually try to give all my project, forms, and components
meaningful names as it helps when reading the code. To name something,
click on it in the editor and access the name property in the property
sheet. By default, you should find the property sheet on the lower-right
side of the eVB interface.

Go ahead and name your project, etc. at this time.
Save your progress
Now would also be a good time to save your project
and form.
To save your work, use the File->Save Project
menu item.
Next Page
Back to Starting Out | [Article Index]
|