double-click

Cleanest single click + double click handling in Silverlight?

I've been finding various methods of dealing with double click and then the authors slap on some if code for handling single clicks. Is there a standard now in Silverlight 3 that everyone is using to handle both a single and a double click on listboxes? ...

How to bind a command in WPF to a double click event handler of a control?

I need to bind the double click event of a textblock (or potentially an image as well - either way, its a user control), to a command in my ViewModel. TextBlock.InputBindings does not seem to bind correctly to my commands, any help? ...

C# Winforms, Distinct double click from expanding the tree node in TreeView

I need to distinct the action in BeforeExpand event of TreeView. The problem is that the DoubleClick event is lunched after BeforeExpand event. When user double clicks the tree node the DoubleClick event is fired - which is ok, but the node is expanded/collapsed. I'd like to limit that the user needs to click '+' to expand the node and...

MouseProc hook and WM_LBUTTONDBLCLK

I have a hook setup for getting mouse events in a plugin I develop. I need to get the WM_LBUTTONDBLCLK, and I expect the message flow to be: WM_LBUTTONDOWN, WM_LBUTTONUP, WM_LBUTTONDBLCLK If the I call the next hook when dealing with the first WM_LBUTTONDOWN, then the flow is as expected. However, if I return my own result, then the ex...

How can jQuery be used to handle timer in click, dblclick separation

I am using the jQueryFileTree at http://abeautifulsite.net/notebook/58 and I want to distinguish between the dblclick and click events as a click is always triggered by a dblclick. Googling about led to be a technique in which click is handled by a timer which kicks in when a dblclick does not cancel it. Is there some way this can be u...

ASP.Net double-click problem

Hi there, having a slight problem with an ASP.net page of mine. If a user were to double click on a "submit" button it will write to the database twice (i.e. carry out the 'onclick' method on the imagebutton twice) How can I make it so that if a user clicks on the imagebutton, just the imagebutton is disabled? I've tried: <asp:ImageBu...

Is there an AJAX service for doubleclick (DART)

I'm trying to put some ads on my site and would like to load them after the page has loaded. We're using Doubleclick DART (please, don't tell me to use Google AdSense. I know, but that's a battle for another day). Doubleclick currently recommends embedding inline script tags like so: <script language=Javascript1.1 src="http://ad.double...

How to use both onclick and ondblclick on an element?

I have an element on my page that I need to attach onclick and ondblclick event handlers to. When a single click happens, it should do something different than a double-click. When I first started trying to make this work, my head started spinning. Obviously, onclick will always fire when you double-click. So I tried using a timeout-...

Unable to set focus to textbox in dojo datagrid

I have a Dojo Datagrid with one of the columns being rendered as a textbox by a formatter function. When I click on the rendered textbox to enter some value, the cursor appears in the textbox and focus is immediately lost (i.e, the cursor disappears - typing does not produce anything). I have to click once more on the textbox for the foc...

Triggers on ScrollViewer child controls

I have a the following code for a ScrollViewer in my Silverlight app. The BasketSymbolsView control contains controls that have custom double click triggers applied to them. For some reason the ScrollViewer is preventing the child controls from triggering an action when I double click the BasketSymbolsView controls. <ScrollViewer x:Na...

Two DOM classes run same javascript class, messing up click functionality?

I've got about 20 on/off switches that sends an ajax request which updates a field in a table. I've duplicated where the class attaches to the selector because i need to be able to designate which switches are on or off. However, the first button i click on works, but after that, i sometimes need to click once for some of the other butto...

Distinguish between mouse doubleclick and mouse click in wpf

In my WPF application , I am using ListView GridView, and I implemented a functionality that is associated to mouse double click. Is there a way, or a control that distinguish between the mouse double click and mouse click? I used a button, and implemented an event for mousedoubleclick, but the click event is still triggering Thanks fo...

asp.net listbox double click event + event handler.

I am trying to add a double-click event in a listbox. But I am getting the following error. the aspx file <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ListBox__Test.aspx.cs" Inherits="DataBind__Various_Controls.ListBox__Test" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/D...

How to hide desktop icons by double clicking the desktop using c#

Hi, I wanted to know if there is a way to toggle desktop icon to show/hide when the desktop is double clicked. Similar to how it is done in Stardock Fences. I wanted it to be done using visual c#. ...

WPF textbox and doubleclick

I am displaying Mac Address in a WPF application. I want that mac address to be selectable to be copy/paste, so I am using ReadOnly TextBox When the user double click I want to select the whole MacAddress The default behavior by the WPF and Windows, is by double click select part of the number between colons so when the mac address is ...

double click to open file c#

I have a listbox filled with file paths. Does anyone know how to open the default program for the file when it's double clicked? For example, if one of the items in the listbox says "c:\test.txt", how do you open it in notepad? And if it's "c:\inetpub\wwwroot\sitetest\test.asp" how can it be opened in the default asp editor? Thanks. ...

How to detect double click on list view scroll bar?

I have two list view on WPF. The first listview is loaded with a Datatable. When double clicking on one item from the first listview, the selectedItem is moved to the second listview. The problem arises when appears an scroll bar in the first list view due to a lot of elements loaded from the DataTable. If a select one item and double ...

How can I catch both single-click and double-click events on WPF FrameworkElement?

I can catch a single-click on a TextBlock like this: private void TextBlock_MouseDown(object sender, MouseButtonEventArgs e) { MessageBox.Show("you single-clicked"); } I can catch a double-click on a TextBlock like this: private void TextBlock_MouseDown(object sender, MouseButtonEventArgs e) { if (e.LeftButton == MouseButtonS...

Double Tap inside UIScrollView to Another View

I want to preface this question with the fact I am new to the iphone application development and many times believe I may be over my head. I am trying to find an action that will allow me to double tap anywhere within my full screen UIScrollView to return to my main menu (MainMenuViewController). I currently have the following code runn...

Catching double click in Cocoa OSX

NSResponder seems to have no mouse double click event. Is there an easy way to catch a double click? ...