ITCOOKBOOK.com

 Options

Current Time:
Mon Sep 06, 2010 8:53 pm
View unanswered posts

Log in

Username:
Password:
Log me on automatically each visit

Topic Information

Add a horizontal break line between Menu Items

 
Post new topic   Reply to topic    ITCOOKBOOK.com Forum Index -> C#
View previous topic :: View next topic  
Author Message
maryh
Member


Joined: 30 Nov 2006
Posts: 21

PostPosted: Fri Dec 01, 2006 9:20 pm    Post subject: Add a horizontal break line between Menu Items Reply with quote

I am adding the “menuitems” to the “contextMenu” of a little system tray application. I would like to add a separator between two “MenuItems”.

Here is the code:

Code:
this.contextMenu1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { this.menuItem1,                     this.menuItem2,                     this.menuItem5,                     this.menuItem3,                     this.menuItem4});


I have tried:

Quote:
menuItem.BreakLine = true;


but that adds a vertical break and creates 2 columns of my ‘popupmenu’.

How can I tell it to put a horizontal separator between 2 “MenuItems”?
_________________
*MaryHeider*
Network Specialist
Pacfic Gas & Electric
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    ITCOOKBOOK.com Forum Index -> C# All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Help US Help YOU

 

 

Please complete our short survey and save $17.50 on ITCOOKBOOK.COM.

 

 

Take a look at SAPTrends.com, a new blog dedicated to discussion of SAP Training trends in SAP ERP.

 

 

C# Interview Questions

 

.NET Interview Questions

 

Java Interview Questions

 

Python Interview Questions

 

ColdFusion Interview Questions

 

Linux Interview Questions

 

Linux LPIC 1 Certification Questions

 

Perl Programming Interview Questions