Double click on a label in windows application
hi,
cud you pls tell me how can we chk, whether label cliked double times..i mean double click on a label in windows application...
thnaks in adv.
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Kirtan PatelRank #292 · 8.6K reputationPosted Oct 24, 2009, 6:10 AM EDT
Just Write Code Like Below to in Label's Double Click Event Check Weather It Double Clicked or Not
private void label1_DoubleClick(object sender, EventArgs e)
{
MessageBox.Show("Label Doubule Clicked !!");
}
please check "Do you like this answer" if my answer helps you :)
if still need assistance then let me know :)
Prakash S11 reputationPosted Oct 24, 2009, 6:13 AM EDT
Kirtan PatelRank #292 · 8.6K reputationPosted Oct 24, 2009, 6:34 AM EDT
Here is Code For that
check "Do you like this answer" if it helps you :)
int ClickCount = 0;
private void Form1_Load(object sender, EventArgs e)
{
foreach (Control c in tableLayoutPanel1.Controls)
{
if (c is Label)
{
((Label)c).DoubleClick +=new EventHandler(Label_DoubleClick);
}
}
}
public void Label_DoubleClick(Object Sender,EventArgs e)
{
ClickCount++;
lblClickCount.Text = ClickCount.ToString();
}