Jason,
MenuItems doesn't have name property. The one that you see in parenthesized
in the property grid is added at design time and is used to generate the
name of the variable. This is actually the name of the Site object.
Menu times can be accessed from their parent by index.
--
Stoitcho Goutsev (100)
"Jason Huang" <Ja************@hotmail.com> wrote in message
news:%2***************@TK2MSFTNGP14.phx.gbl...
Thanks Jon.
Not the caption, I mean the Name property.
"Jon Skeet [C# MVP]" <sk***@pobox.com>
???????:11*********************@z34g2000cwc.google groups.com... Jason Huang wrote: Would someone tell me how to get a MenuItem's Name in a C# Windows Form?
Thanks for help.
Do you mean the caption? Just use the Text property.
Jon