locked
Collapsible Menus RRS feed

  • Question

  • Does anyone know how to add a collapsible menu to a form, similar to the type found in Outlook? Looked all over the net and in books and various other places, but I can only find them for web applications and not windows apps.

    I added a vertical toolbar and had a mess about with that, but i'm pretty sure i'm on the wrong tracks with this idea.

    Any help would be very appreciated. Thanks
    Tuesday, May 29, 2007 1:28 PM

Answers

  • I am not sure if this is what you are looking for but have a look at these links

     

    http://www.vbaccelerator.com/home/index.asp

     

    http://www.vbaccelerator.com/home/VB/Code/Controls/Explorer_Bar_Control/article.asp

     

    Code Snippet

    The vbAccelerator Explorer Bar control is a new control entirely written in VB which provides a user interface like the one in Windows Explorer under XP. You can use it to create handy lists of shortcuts and informational panels, or you can incorporate controls into the panels to provide flexible and configurable complex user interface panels. The code allows you to use the inbuilt XP styles when available or to draw using an emulation otherwise

     

    http://www.vbaccelerator.com/home/NET/Code/Controls/ListBar/Outlook_List_Bar/article.asp

     

    Code Snippet

    The .NET ListBar control aims to provide the most accurate reproduction of the Microsoft Outlook bar control. All the features of the Outlook bar control are supported and more: in particular the control provides nicer drag-drop operation, has more display modes and provides an extensible object model which enables it to be used as the basis for more esoteric ListBar style controls

     

    Friday, June 1, 2007 10:33 AM

All replies

  • Look into the TreeView control.  If you want it to look like the outlook varient, you'll want to change the ShowLines property, and place images in the ImageList.  Then set each TreeNode's ImageIndex to the index of the image you want it to display.

    Of course, TreeNode can be inherited, which allows you to carry along whatever data you want with the Node so long as you cast it when you retrieve it (haven't done too much .NET 2.0 so I don't know if that treeview allows generics or not)

    Good luck,

    -mwalts
    Tuesday, May 29, 2007 3:47 PM
  • Thanks for the pointer mwalts, although i wasn't very clear on what i was referring to i think.
    I was actually wanting to replicate the panel you find on the far left of Outlook that contains a menu of shortcuts (at least in the version i have which is MS Outlook 2002). It's a bit like a drop-down menu that you would find on a webpage.

    The only thing i have found so far is Krypton Toolkit which is a free add-in program for VB Studio to make life easier in creating these kinds of things, but it doesn't seem to work in VB 2005 Express, which is what i have. I would prefer to know how to do this myself anyway!

    I have messed around with TreeView and ListView but i'm getting nowhere fast.

    Any thoughts?

    Thanks.
    Friday, June 1, 2007 8:46 AM
  • I am not sure if this is what you are looking for but have a look at these links

     

    http://www.vbaccelerator.com/home/index.asp

     

    http://www.vbaccelerator.com/home/VB/Code/Controls/Explorer_Bar_Control/article.asp

     

    Code Snippet

    The vbAccelerator Explorer Bar control is a new control entirely written in VB which provides a user interface like the one in Windows Explorer under XP. You can use it to create handy lists of shortcuts and informational panels, or you can incorporate controls into the panels to provide flexible and configurable complex user interface panels. The code allows you to use the inbuilt XP styles when available or to draw using an emulation otherwise

     

    http://www.vbaccelerator.com/home/NET/Code/Controls/ListBar/Outlook_List_Bar/article.asp

     

    Code Snippet

    The .NET ListBar control aims to provide the most accurate reproduction of the Microsoft Outlook bar control. All the features of the Outlook bar control are supported and more: in particular the control provides nicer drag-drop operation, has more display modes and provides an extensible object model which enables it to be used as the basis for more esoteric ListBar style controls

     

    Friday, June 1, 2007 10:33 AM
  • Cheers bdbodger.....that should keep me busy for a bit!
    Tuesday, June 5, 2007 8:19 AM