2

btn1 是 ToolStripDropDownButton

我怎么能这么说

private void btn1_DropDownItemClicked(object sender, ToolStripItemClickedEventArgs e)
{
 MessageBox.Show(btn1.CurrentItem.Text.ToString()); // CurrentItem = item clicked.
}
4

1 回答 1

5
private void btn1_DropDownItemClicked(object sender, ToolStripItemClickedEventArgs e)
{
  MessageBox.Show(e.ClickedItem.Text); // ClickedItem = item clicked.
}
于 2012-06-30T03:46:43.327 回答