Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Get the .Name of a Menu Item

Status
Not open for further replies.

eichmat

MIS
Oct 24, 2002
20
0
0
US
Ok--in VB6, to support on-the-fly language changes for our users, we applied a method of loading a list of control translations from a SQL table into a dictionary. Then, for each control in the form.controls collection, based on the control's .Name property (e.g.--mnuFileExit), looked up the control in the dictionary and changed .Caption appropriately.

Now--in .NET, we've noticed that MenuItem objects do not have a .Name property and the .ToString doesn't return what I'm looking for.

Basically, now can I identify a menu option by "name" at run-time?

Does anyone have an idea how to do what I want to do?

Thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top