Question

I want to call the click function of MenuStrip in C# associated with the item of MenuStrip whose index i can provide e.g i want to call

menuStrip1.Items[0]

click function.

Was it helpful?

Solution

Call PerformClick(), i.e. menuStrip1.Items[0].PerformClick();

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top