Hi,
I have created a ToolStripMenuItem in the MenuStrip.
Is is called: OneToolStripMenuItem
What I need to do now is these tasks programatically:
1. Add one Item named: "Item1"
2. Create a Click Event for this "Item1"
3. Place a very small .JPG Image or Icon Before this "Item1"
I have managed to Add the Item but the click event is not well formed, I wonder what I am missing there and the Image before this Item I am not sure how to declare.
String^ text = "Item1";
ToolStripMenuItem^ foo = gcnew ToolStripMenuItem(text);
foo->Click += gcnew EventHandler(Item1_Click); //Not correct ?
OneToolStripMenuItem->DropDownItems->Add(foo);
//Add image before This Item ??
Thank You!