Solved

What is the best practice for implementing a simple outlook style side menu in VB.NET using only .NET components?

Posted on 2012-03-28
4
412 Views
Last Modified: 2012-04-04
Hi I'm writing an application in which I use a left side menu for user navigation.
I inititally decided to use the TreeView component as a menu as it seemed to already possess the needed properties for a menu; possibility to add menu items (roots) and even sub menu items (children) as well as events for handling node clicks etc.

However for some reason I can't explain the TreeView is giving me a lot of trouble. For example it displays menu items incorrectly, that is some items are not displayed fully even though theres a lot of width left. I'm pre-adding roots and children through the VS2012 designer and the Nodes property. I haven't tried programmatically as the menu I'm working on is static, adn it thus seemed unnecessary. But I wouldnt think that it should make any difference whatsoever.

So I'm basically either looking for a way to make it work as intended with the TreeView or even better use the best practice for implementing the kind of menu I want to have. Any suggestion is welcome.

I have embedded a screendump of the current menu, which should provide some idea of what I wish to implement. Also it shows the visual error mentioned above: "Add New" and "Customers" is cut off.

Screendump of the current menu implemented using TreeView
0
Comment
Question by:andreas_rafn
4 Comments
 
LVL 17

Assisted Solution

by:nepaluz
nepaluz earned 150 total points
ID: 37780687
Here's a walkthrough from Microsoft:
http://msdn.microsoft.com/en-us/library/ms229725.aspx
0
 
LVL 24

Accepted Solution

by:
fridom earned 200 total points
ID: 37781614
TreeView is the answer and you should check for a tutorial on how to use  it.
0
 
LVL 83

Assisted Solution

by:CodeCruiser
CodeCruiser earned 150 total points
ID: 37782939
You can copy and paste code from this open source control or use it as it is

http://www.codeproject.com/Articles/43181/A-Serious-Outlook-Style-Navigation-Pane-Control
0
 

Author Closing Comment

by:andreas_rafn
ID: 37805543
I chose the simpler TreeView solution, but all suggestions were good. On a sidenote: after simply generating the contents of the TreeView menu at runtime all the problems went away (the visual anomalities etc.).
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Apps blocked by Java 9 55
VB.Net Serial COM1 Port - how to send this text via Serial COM port? 13 41
ADO.NET ENTITY DATA MODEL 3 30
Regular Expression Calculator Tester 2 47
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

929 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now