borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2010 Andrea Tincaniborder

AndreaVB | Forum | News | Downloads | Register | Help | Member List | Statistics | Search | PM | Profile

Print This Topic
Previous Topic (make tree view of all menues on the form)Next Topic (Diff between window.open and window.showmodaldailog) New Topic New Poll Post Reply
AndreaVB Forum : C# : make tree view of all menues on the form
Poster Message
Afshin_Zavar
Level: Professor


Registered: 17-07-2003
Posts: 84

Ads by Lake Quincy Media
icon make tree view of all menues on the form

this is a simple code which i made to get list of all menus and sub-menus of Form
Now i wanna add each name of MenuItem to TreeView to show tree-style of menu.
can anybody make it possible?

  
            TraceToolStripItem( menuStrip1.Items );
        
        /********************/
        private void TraceToolStripItem( ToolStripItemCollection menus )
        {
            ToolStripMenuItem t = new ToolStripMenuItem();

            foreach ( ToolStripItem c in menus )
            {
                if ( c is ToolStripMenuItem )
                {
                    t = (ToolStripMenuItem) c;
                    //  checkedListBox1.Items.Add( t.Text  );
                    TraceToolStripItem( t.DropDownItems );
                }
            }
        }


____________________________
Persia

25-05-2009 at 03:43 PM
View Profile Send Email to User Show All Posts Visit Homepage | Quote Reply
AndreaVB Forum : C# : make tree view of all menues on the form
Previous Topic (make tree view of all menues on the form)Next Topic (Diff between window.open and window.showmodaldailog) New Topic New Poll Post Reply
Surf To:


Not Logged In? Username: Password: Lost your password?
Partners: Download Actual Software | Free Software Download
borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2010 Andrea Tincaniborder