btn1是ToolStripDropDownButton
我怎么说呢
private void btn1_DropDownItemClicked(object sender, ToolStripItemClickedEventArgs e)
{
MessageBox.Show(btn1.CurrentItem.Text.ToString()); // CurrentItem = item clicked.
}
答案 0 :(得分:5)
private void btn1_DropDownItemClicked(object sender, ToolStripItemClickedEventArgs e)
{
MessageBox.Show(e.ClickedItem.Text); // ClickedItem = item clicked.
}