Dear Mick
Thanks for your coding, I can add it to my mainmnenu. However, I don't
know how to retreive the property (Tag)
For Each FileMenuItem As MenuItem In Me.Menu.MenuItems
FileMenuItem.Tag <-- there is still no such property ????
next
"Mick Doherty"
<EXCHANGE#(E-Mail Removed).[mdaudi100#ntlworld.com]> 级糶秎ン穝籇:(E-Mail Removed)...
> There's a MenuExtender example on my site that adds a Tag and RadioGroup
> property to menuitems.
> You will find source in both VB and C#
> http://dotnetrix.co.uk/menus.html
>
> --
> Mick Doherty
> http://dotnetrix.co.uk/nothing.html
>
>
> "Agnes" <(E-Mail Removed)> wrote in message
> news:%(E-Mail Removed)...
>> Dear Herfried,
>> Does there is anyway to convert c# into vb.net ?? I try to modify the
>> code, but really fail to understand the c#
>> Thanks
>> "Agnes" <(E-Mail Removed)> 级糶秎ン穝籇:%(E-Mail Removed)...
>>> Thanks Herfried,
>>> I try to modify the Hash Table, But fail........Anyway , thanks a lot
>>> "Herfried K. Wagner [MVP]" <hirf-spam-me-(E-Mail Removed)>
>>> ???????:%(E-Mail Removed)...
>>>> "Agnes" <(E-Mail Removed)> schrieb:
>>>>>I know how to get the Menuitem's TEXT . BUT I need to get the names ,
>>>>>Does anyone know how to do ??
>>>>> Thanks
>>>>>
>>>>> I try That " For Each FileMenuItem As MenuItem In Me.Menu.menuitem"
>>>>> before
>>>>
>>>> 'MenuItem' doesn't have a 'Name' property. You may want to use an
>>>> extender component which provides the 'Name' property:
>>>>
>>>> MenuItem Extender - add images and font support to your menu
>>>> <URL:http://www.codeproject.com/cs/menu/MenuExtender.asp>
>>>>
>>>> If you want to lookup menu items, you can store (key, 'MenuItem') pairs
>>>> in a hash table ('Hashtable').
>>>>
>>>> --
>>>> M S Herfried K. Wagner
>>>> M V P <URL:http://dotnet.mvps.org/>
>>>> V B <URL:http://classicvb.org/petition/>
>>>
>>>
>>
>>
>
>