Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想在 C# 中调用 MenuStrip 的单击函数,该函数与我可以提供其索引的 MenuStrip 项相关联,例如我想调用
menuStrip1.Items[0]
点击功能。
调用PerformClick(),即menuStrip1.Items[0].PerformClick();
PerformClick()
menuStrip1.Items[0].PerformClick();