ComboBox.DoubleClick事件

先在窗口中加个Timer,

private void Form1_Load(object sender, System.EventArgs e)
        
{
            
this.timer1.Interval = SystemInformation.DoubleClickTime;

        }
private void timer1_Tick(object sender, System.EventArgs e)
        
{
            
this.timer1.Enabled = false;
        }
private void comboBox1_Click(object sender, System.EventArgs e)
        
{
            
if(this.timer1.Enabled)
            
{
                MessageBox.Show(
"hell");
            }

            
else
            
{
                
this.timer1.Start();
            }

        
        }
原文地址:https://www.cnblogs.com/bearhb/p/143318.html