Windows Phone Thoughts - Daily News, Views, Rants and Raves

Check out the hottest Windows Mobile devices at our Expansys store!


Digital Home Thoughts

Loading feed...

Laptop Thoughts

Loading feed...

Android Thoughts

Loading feed...




Go Back   Thoughts Media Forums > WINDOWS PHONE THOUGHTS > Windows Phone Developer

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-26-2003, 04:55 PM
Editor Emeritus
Mike Temporale's Avatar
Join Date: Aug 2006
Posts: 10,981
Default Problems with MainMenu when using Smartphone 2003 SDK &

Has anyone else played with the new Smartphone 2003 SDK using VB.NET??

For some reason I can't build a menu for the left hot key. I can for the right, but of the left key has any children, it will fail when deploying with the following error:

Quote:
An unhandled exception of type 'System.NotSupportedException' occurred in System.Windows.Forms.dll
It fails on the system generated line

Code:
me.Menu = Me.MainMenu1
Am I doing something wrong here? of is there an issue with the using the main menu on the left softkey?
__________________
"I have no special talents, I am only passionately curious" - Albert Einstein
 
Reply With Quote
  #2 (permalink)  
Old 08-26-2003, 05:16 PM
Philosopher
Join Date: Jun 2003
Posts: 544

This is by design. Here's a snippet from the SDK's documentation.

"You can have no more than two top-level menu items.
Only the second top-level menu item, on the right side of the form, can have submenus.
Note The .NET Compact Framework does not enforce these restrictions at design time but does throw an NotSupportedException at run time.
Visual Studio.NET automatically adds a MainMenu component to your form when you create Smartphone and Pocket PC applications. The component, however, is not automatically added to child forms.

The Compact Framework does not limit the number of submenu items you can have or the number of nested menus, but for best practices follow Smartphone UI guidelines as described in "Designing User Interfaces for Smartphone" in the Smartphone Guide.

At run time, you cannot delete a top-level menu item. However, you can set MenuItem.Enabled to false and set MenuItem.Text to an empty string to make a menu item appear invisible."
__________________
This posting is provided "AS IS" with no warranties, and confers no rights.
 
Reply With Quote
  #3 (permalink)  
Old 08-27-2003, 02:09 AM
Editor Emeritus
Mike Temporale's Avatar
Join Date: Aug 2006
Posts: 10,981

Thanks! I looked in the SDK Help while I was at the cottage last week, however I'm guessing I had too many glasses of wine and that's why I couldn't find the answer. :drinking:
__________________
"I have no special talents, I am only passionately curious" - Albert Einstein
 
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Browsing the Web on MS Smartphone (WM Standard) devices & Review of Opera Mini 4 beta Menneisyys Windows Phone Software 28 11-13-2007 06:32 PM
Your Smartphone as a Bluetooth Modem for Your Laptop Kris Kumar Windows Phone Articles & Resources 22 04-13-2006 11:45 PM
The Rugged Smartphone: Nextel i930 by Motorola Kris Kumar Windows Phone Hardware 15 02-22-2006 04:23 PM
Clam Shell Beauty: Motorola MPx220 Smartphone Reviewed Kris Kumar Windows Phone Hardware 35 12-23-2004 05:38 AM
Smartphone 2003 SDK Released Robert Levy Windows Phone News 4 08-15-2003 09:18 PM


All times are GMT +1. The time now is 09:06 PM.



Search Engine Friendly URLs by vBSEO 3.6.0 PL2