FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Label click is not responding

 
Post new topic   Reply to topic     Forum Index -> DFL
View previous topic :: View next topic  
Author Message
jicman



Joined: 22 Dec 2004
Posts: 298
Location: Rochester, NY

PostPosted: Mon Aug 27, 2007 8:51 am    Post subject: Label click is not responding Reply with quote

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
View user's profile Send private message
Chris Miller



Joined: 27 Mar 2004
Posts: 514
Location: The Internet

PostPosted: Thu Sep 06, 2007 3:25 am    Post subject: Re: Label click is not responding Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> DFL All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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