MenuItem Name

Volte

Neutiquam Erro
Joined
Nov 17, 2002
Messages
2,165
User Rank
*Expert*
Alright, Im a relative newbie to .NET, but Im picking it up fairly fast.
I have created an Ownerdrawn menu that has the XP style (its
duplicated pretty precisely I think). The problem is that right now,
all the items have the same icon (for testing).

I thought about using a collection of Image objects to specify which
menu bitmap goes where (with the MenuItem name as the key).
One problem:

I cant figure out how to get the name of it in code.

Theres no Name property. in the Intellisense. Im probably
missing something simple. :-\
 
In the Debug.Write window, that returns this:
Code:
System.Windows.Forms.MenuItem, Items.Count: 8, Text: Testing 1 2
But no name. :-\
 
Back
Top