ComboBox.DoubleClick事件
先在窗口中加个Timer,
private void Form1_Load(object sender, System.EventArgs e)
{
this.timer1.Interval = SystemInformation.DoubleClickTime;
}
{
this.timer1.Interval = SystemInformation.DoubleClickTime;
}
private void timer1_Tick(object sender, System.EventArgs e)
{
this.timer1.Enabled = false;
}
{
this.timer1.Enabled = false;
}
private void comboBox1_Click(object sender, System.EventArgs e)
{
if(this.timer1.Enabled)
{
MessageBox.Show("hell");
}
else
{
this.timer1.Start();
}
}
{
if(this.timer1.Enabled)
{
MessageBox.Show("hell");
}
else
{
this.timer1.Start();
}
}