How to get Parent Menu name in VB
How to get Parent Menu name in VB
Collapse
X
-
Tags: None
-
sorry wat u mean by parent ?? u mean like file .. edit and this ?Originally posted by sukeshchandHow to get Parent Menu name in VB -
-
In vb we use the following code for gettigng the menu names in a form
Dim mc As Variant
For Each mc In Me.Controls
If TypeName(mc) = "Menu" Then
MsgBox mc.Name '-----Menu found
End If
Next
if the form have menu structure like
mnu1
---------SubMenu11
---------SubMenu12
---------SubMenu13
---------SubMenu14
mnu2
---------SubMenu21
---------SubMenu22
when i enter the submenu11 in for each loop, i want to know about its parent name that is (mnu1) thats my questionComment
Comment