Click here to Skip to main content
15,892,517 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I have a Windor form application, there are MenuStrip object and ToolStrip object in program,
I found there is 'CanOverflow' property in ToolStrip object, but, there is no this kind of flag in MenuStrip.

My condition is below :
1. There are Items in MenuStip, and each Item has DropDownItems, one of MenuStrip Item (say ItemA) has a long DropDownItems, so that when display DropDownItems of ItemA, the DrwpDownItems will be too long to be set higher location than ItemA itself.

My question is below :
Is there any such kind of 'CanOverflow' propery to be set, so that some of DropDownItems in ItemA can be 'hidden in overflow table', or any way to reach this request ?

Thanks of your fully support.
Posted

1 solution

It is there at least since v.2.0 of the Framework: http://msdn.microsoft.com/en-us/library/system.windows.forms.menustrip.canoverflow.aspx[^].

—SA
 
Share this answer
 
Comments
Sports Kuo 13-May-13 4:33am    
Thanks SA so much of your fully support.
Sergey Alexandrovich Kryukov 13-May-13 10:32am    
You are welcome.
—SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900