MenuItem Name

Volte

Neutiquam Erro
Joined
Nov 17, 2002
Messages
2,172
Alright, I'm a relative newbie to .NET, but I'm picking it up fairly fast.
I have created an Ownerdrawn menu that has the XP style (it's
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 can't figure out how to get the name of it in code.

There's no 'Name' property. in the Intellisense. I'm probably
missing something simple. :-\
 
In the Debug.Write window, that returns this:
Visual Basic:
System.Windows.Forms.MenuItem, Items.Count: 8, Text: Testing 1 2
But no name. :-\
 
Back
Top