Quantcast
Channel: Windows Forms General forum
Viewing all articles
Browse latest Browse all 12583

Get Set ContextMenuStrip ItemsCollection

$
0
0

I have a ContextMenuStrip declared in a custom control and i cant find a way to make a property for that custom control that Gets and Sets the ContextMenuStrip's items collection i tried something like this but it doesnt work.

ContextMenuStrip _Menu = new ContextMenuStrip(); public ToolStripItemCollection MenuItems { get { return _Menu.Items; } set { _Menu.Items = value; } }

How can thisd be done?


Viewing all articles
Browse latest Browse all 12583

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>