retrieve a menuItem childmenuitem

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Paulson
    New Member
    • Apr 2007
    • 63

    retrieve a menuItem childmenuitem

    [CODE=vbnet]Dim arr(1) As String
    arr(0) = "Paulson1"

    For Each ctrl As ToolStripMenuIt em In MenuStrip.Items

    For Each ctrl1 As ToolStripMenuIt em In ctrl.DropDownIt ems

    If arr(0) = ctrl1.Text Then
    ctrl1.Visible = False
    End If

    Next

    Next[/CODE]
    Is this possible?
    Last edited by Killer42; Apr 1 '08, 10:51 AM. Reason: Added [CODE=vbnet] tag
  • VBWheaties
    New Member
    • Feb 2008
    • 145

    #2
    Originally posted by Paulson
    Dim arr(1) As String
    arr(0) = "Paulson1"

    For Each ctrl As ToolStripMenuIt em In MenuStrip.Items

    For Each ctrl1 As ToolStripMenuIt em In ctrl.DropDownIt ems

    If arr(0) = ctrl1.Text Then
    ctrl1.Visible = False
    End If

    Next

    Next
    Is this possible?
    Looks legit. Give it a try.

    Comment

    Working...