|
|
|
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: |
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 ) |
|
|