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();
            }

        
        }
posted @ 2005-04-22 12:50  阿土仔  阅读(710)  评论(1编辑  收藏  举报