Z
zt
I need to translate program to another language.
How to enumerate all menus and submenus in form??
I have used for each loop in vb6 but how to di this in vb.net??
VB:
----------------------------------------------------------------------------
----
'i try this in vb.net
Private Function ListMenus(ByVal frm As Form) As String
Dim tstr As String
For Each ctrl As Control In frm.Controls
If TypeName(ctrl) ="Menu" Then
tstr &= ctrl.Name & vbCrLf
End If
Next
MsgBox(tstr)
End Sub
----------------------------------------------------------------------------
----
MenuItem does not have Tag proprty anymore???
It sounds very simple but...arggggggh.. How to do this?? ; )
-Sepu
How to enumerate all menus and submenus in form??
I have used for each loop in vb6 but how to di this in vb.net??
VB:
----------------------------------------------------------------------------
----
'i try this in vb.net
Private Function ListMenus(ByVal frm As Form) As String
Dim tstr As String
For Each ctrl As Control In frm.Controls
If TypeName(ctrl) ="Menu" Then
tstr &= ctrl.Name & vbCrLf
End If
Next
MsgBox(tstr)
End Sub
----------------------------------------------------------------------------
----
MenuItem does not have Tag proprty anymore???
It sounds very simple but...arggggggh.. How to do this?? ; )
-Sepu