Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / .NET SDK / February 2004

Tip: Looking for answers? Try searching our database.

Bug Report - 2 Bugs found with the Menu Item Class

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Baggy - 18 Feb 2004 18:31 GMT
I have found 2 bugs with the menu item class; both are closely related

Over-View

I was curious what would happen if I passed a menu item the following string in it's text field
"Test &&&me &1 &&&2

Yes I know this is BAD programming, but it is how you find out what works

[Bug 1 - Hot Key Parsing
With the above string the "2" is highlighted, while the "m" remains the hot key.  The hot key and the underlined key need to match each other

[Bug 2 – Hot Key Enabling with UserDraw = true
With the above string, if UserDraw is set to true before the MenuItem is added to the MainMenu the hot key will not work.  However, if you wait till after the MenuItem, has been added to the MainMenu, then set UserDraw = true, the hot key will function correctly

If you whish to see my code, ask; I’ll email it directly to you, as I was trying to make a simple custom MenuItem when I discovered this

Bagg
Baggy - 18 Feb 2004 18:46 GMT
There is an error in the above post

The string I passed looked lik
"Test &me &1 &&&2

Incase it is parsed by the server when I send it in here is what it was

Tes
Spac
Ampersan
m
Spac
Ampersan
On
Spac
Ampersan
Ampersan
Spac
Ampersan
Tw
Vijay Devatha [MSFT] - 20 Feb 2004 18:25 GMT
I'd like to see your code - could you send it to me? You'll need to remove
the "online" in my email address. Thanks,
Vijay

Signature

--
Please reply in newsgroup.
This posting is provided "AS IS" with no warranties, and confers no rights.

"Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm"

> There is an error in the above post.
>
[quoted text clipped - 16 lines]
> Ampersand
> Two

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.