Atlanta Custom Software Development 

 
   Search        Code/Page
 

User Login
Email

Password

 

Forgot the Password?
Services
» Web Development
» Maintenance
» Data Integration/BI
» Information Management
Programming
  Database
Automation
OS/Networking
Graphics
Links
Tools
» Regular Expr Tester
» Free Tools

Multi-column menus

Total Hit ( 3658)

Rate this article:     Poor     Excellent 

 Submit Your Question/Comment about this article

Rating


 


The new Break and BarBreak properties of the MenuItem object let you create menus with multiple columns. All you have to do is set either property to True for the MenuItem object that must become the first item of a new menu column. The only difference between these two properties is that BarBreak displays a vertical line among adjacent columns, whereas Break does not.

A minor annoyance attached to these properties is that they don't appear in the Properties window, so you have to set them via code, as you see here:

Click here to copy the following block
mnuFileItem6.BarBreak = True

You can place this statement in the InitializeComponent procedure (the one generated by the form designer), at the end of the New method, or in the Form_Load event procedure. Using the latter two locations ensure that your code isn't overwritten by the form designer when you change another property of the same MenuItem object.


Submitted By : Nayan Patel  (Member Since : 5/26/2004 12:23:06 PM)

Job Description : He is the moderator of this site and currently working as an independent consultant. He works with VB.net/ASP.net, SQL Server and other MS technologies. He is MCSD.net, MCDBA and MCSE. In his free time he likes to watch funny movies and doing oil painting.
View all (893) submissions by this author  (Birth Date : 7/14/1981 )


Home   |  Comment   |  Contact Us   |  Privacy Policy   |  Terms & Conditions   |  BlogsZappySys

© 2008 BinaryWorld LLC. All rights reserved.