Context menu problems.

rbulph

Junior Contributor
Joined
Feb 17, 2003
Messages
397
I have a context menu that has a few items added at design time and further ones that I add at run time. For the former ones the whole row is highlighted when the cursor passes over it, but for the latter, just the word that it contains is highlighted. This doesn't look very good. Any idea what's causing it?

Also, I'd like to have two different levels of menu separators, one more pronounced than the other. Is there any easy way to achieve this? If one could just be twice as thick as the other that would do.
 
Ah! I was adding ToolStripButtons rather than ToolStripMenuItems. Correcting that has fixed it.

Any thoughts about the separators?
 
The separators are a different class: ToolStripSeparator instead of ToolStripMenuItem.

After creating a separator you can add it to the context menu in the same way as a normal menu item.
 
Back
Top