"Agnes" <ag***@dynamictech.com.hk> 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/>