View previous topic :: View next topic |
Author |
Message |
jicman
Joined: 22 Dec 2004 Posts: 298 Location: Rochester, NY
|
Posted: Mon Aug 27, 2007 8:51 am Post subject: Label click is not responding |
|
|
Greetings.
I have this code for a label double click,
Code: | protected void TMDirDisplay_doubleClick(Object sender, EventArgs ea)
{
OpenWindowsExplorer(TMDirDisplay.text);
}
|
and this works perfectly. I have this code for the same label, but a single click,
Code: | protected void TMDirDisplay_click(Object sender, EventArgs ea)
{
dfl.clipboard.Clipboard.setString(TMDirDisplay.text,false);
info.text = "TM Directory path was copied to clipboard. CTRL-V will paste it.";
}
|
but it does not work. Does the double click takes away the click?
thanks,
jose |
|
Back to top |
|
|
Chris Miller
Joined: 27 Mar 2004 Posts: 514 Location: The Internet
|
Posted: Thu Sep 06, 2007 3:25 am Post subject: Re: Label click is not responding |
|
|
Well yes, double click does not cause a click event for the first one. They're separate; one means just one, the other means two.
Perhaps you want onMouseDown instead of click; the MouseEventArgs gives you the number of clicks. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|