VBCE.com - The Premier Website For Visual Basic/CE Developers

 

*Dev Corner

Sample Code
Controls
Workarounds
Tips & Tricks
Q & A
Forums

*Goodies
Downloads
Software
Bookstore


*General
Home
What's New
General Info
Misc. Info


*News Worthy
News
Articles
Editorials
KB Articles
Reviews
Awards

*Miscellaneous
Web Links
Partners
Search
Feedback
Advertising

Sponsors


More...



A very simple example for beginners of the menu, message box, public functions and modules by Steve Roy.

Download Code!

Rather then use the commandbar you can add a menu using VB's built in menu editor under Tools. It's a lot faster then using the commandbar.

Here I have added some menu items.

 

Here is my form after adding my menus, label and command button. I set the forms height to 4600 and width to 3600 and set the border style to none.

 

Here I have added a module to the project and the public function "Messagebox" code

 

This is what my project window looks like now.

Here is a snapshot of my code window. The command button on the form calls the public Messagebox function in my module. The code in form_load forces the form to sit properly on my palmheld and the code in mnuquit_click() is the correct way to end a CE program.

 

Visit http://www.softhat.com

 

 

VBCE.com is DevX Winner!

Unless otherwise noted, all information on VBCE.com is Copyright 1998 - 2002
Windows, Windows CE, and Visual Basic are trademarks of the Microsoft Corporation.
VBCE.com is not responsible for content on external sites.
Send all feedback to webmaster@vbce.com
Webmasters - feel free to link to
VBCE.com - Premier Website for Visual Basic/CE Development

Buy Books!