test code

Test snippet code

private ContextMenuStrip menuPanelTastoDx()
{
	ContextMenuStrip contextMenuStrip1 = new System.Windows.Forms.ContextMenuStrip();
	ToolStripMenuItem item;

	item = new ToolStripMenuItem();
	item.Text = "Cancella Immagine";
	item.ImageIndex = 0;
	contextMenuStrip1.Items.Add(item);

	item = new ToolStripMenuItem();
	item.Text = "Dettagli";
	item.ImageIndex = 1;
	contextMenuStrip1.Items.Add(item);

	contextMenuStrip1.Items.Add(new ToolStripSeparator());

	item = new ToolStripMenuItem();
	item.Text = "Cancella tutte le descrizioni";
	item.ImageIndex = 2;
	contextMenuStrip1.Items.Add(item);
	
	contextMenuStrip1.ItemClicked += contextMenuStrip1_ItemClicked;

	return contextMenuStrip1;
}