double-click

DataGridView's bound table only generates one RowChanged event on a double-click. How do I make it do two?

I have a DataGridView whose DataSource is a DataTable. This DataTable has a boolean column, which is interpreted as a checkbox in the DataGridView. employeeSelectionTable.Columns.Add("IsSelected", typeof(bool)); ... employeeSelectionTable.RowChanged += selectionTableRowChanged; dataGridViewSelectedEmployees.DataSource = employeeSelectio...

Double-click double-insert resolutions?

A team member has run into an issue with an old in-house system where a user double-clicking on a link on a web page can cause two requests to be sent from the browser resulting in two database inserts of the same record in a race condition; the last one to run fails with a primary key violation. Several solutions and hacks have been pr...

Best way to deal with users double-clicking buttons in a winforms app?

I'm working on a WinForms app and I have a user control in it. The buttons in the user control raise events up to the form to be handled by other code. One of the buttons starts some processses that will cause problems if they run simultaneously. I have logic in the code to manage the state so typically a user can't run the process if...

javascript document.write in external js file. IE problem. Yes, again and still.

Hello the Community. Working on big, high loaded project I got the problem that already described in billion of topics on forums and blog, but there is no solution that will help in my case. Here is the story. I have the HTML code of banner, I don't know what is the code. Sometimes it's plain HTML, but sometimes it's <script> tag with ...

Detecting mouse double-click in Flash (AS2)

Is there a way to detect mouse double-click on a button object using ActionScript 2.0? ...

Starting application from data file

When you double-click on a Word document, Word is automatically run and the document is loaded. What steps are needed to do the same thing with my C# application? In other words, assume my application uses ".XYZ" data files. I know how to tell Windows to start my application when a .XYZ data file is double clicked. But how do I find ...

TreeView double-click behaviour in .net / C#

Hi, I have a regular .net windows forms treeview control. The nodes are setup like this: Group ---child ---child If I double-click a collapsed Group node, it expands (as you'd expect) and the NodeMouseDoubleClick event is fired off, where my code does something if the selected node is NOT a group node. The problem arises when the ...

TreeView re-grabs focus on Ctrl+Click

I have a WinForms TreeView control that I would like to use to open another form based on which node is currently selected. I want to open that other form when I Ctrl+Click on the node. Currently, it works the way I would like if I open the other form in a DoubleClick handler (and double-click on the node, obviously); however, if I use...

Double click an NSTableView row in Cocoa?

I need my application to open a window when a user double clicks on a row in an NSTableView. I'm having a bit of a difficult time finding information or examples on how to accomplish this. Can anybody point me in the right direction? ...

NSTableView sort not getting correct ID

I'm using a Table View in a Cocoa application. I have set the double click action to do the following method when it occurs: - (void)doubleClickInTable:(id)sender { int rowIndex = [sender selectedRow]; if (rowIndex != -1) { [userEditController setData:[[self users] objectAtIndex:rowIndex]]; [self showUserEdit...

Obtain Position/Button of mouse click on DoubleClick event

Is there a method to obtain the (x, y) coordinates of the mouse cursor in a controls DoubleClick event? As far as I can tell, the position has to be obtained from the global: Windows.Forms.Cursor.Position.X, Windows.Forms.Cursor.Position.Y Also, is there a method to obtain which button produced the double click? ...

WPF ListView: Attaching a double-click (on an item) event

I have the following ListView: <ListView Name="TrackListView"> <ListView.View> <GridView> <GridViewColumn Header="Title" Width="100" HeaderTemplate="{StaticResource BlueHeader}" DisplayMemberBinding="{Binding Name}"/> <GridViewColumn Header="Artist" Width="100" HeaderTemplate="{StaticResource BlueHead...

Prevent double-click from double firing a command

Given that you have a control that fires a command: <Button Command="New"/> Is there a way to prevent the command from being fired twice if the user double clicks on the command? EDIT: What is significant in this case is that I am using the Commanding model in WPF. It appears that whenever the button is pressed, the command is execu...

Flex Double Click Behaviour, isn't it strange or it's just me ?

Hi all, When using double click enable on any component, sometimes i have trouble activating the double click. I realised that if I move between my fast paced single click it will NEVER fire a double click event. If however if I do not move the mouse between the clicks then the double click is fired. Before i start using timer to get ...

In Flash AS3, Is there anyway to detect a DoubleClick action without it detecting the MouseClick?

I have 2 seperate events that are not related to each other and each is attached to the Mouseclick and Doubleclick eventresponses respectively. However, during runtime, I find that even when I doubleclick, the Mouseclick action still gets activated. I've been trying to find a viable solution where the Mouseclick and Doubleclick can co-...

Flash 8 AS2 Mouse click behaviour: clicked spot becomes unclickable until mouse moved

Hi all I have a series of buttons on the stage, they can be double clicked using a timer that detects a double click. this all works great until I refresh the page and load another lot of buttons. The the problem starts... If I click on a spot on the screen I am unable to reclick that same spot. I have to move the mouse slightly to be ...

How do I get a DoubleClick event in a .NET radio button?

I'd like to be able to catch the DoubleClick or MouseDoubleClick events from a standard winforms radio button, but they seem to be hidden and not working. At the moment I have code like this: public class RadioButtonWithDoubleClick : RadioButton { public RadioButtonWithDoubleClick() : base() { this.SetStyle( ControlStyles.Standard...

Need to cancel click/mouseup events when double-click event detected

How is this done? ...

javascript to get system double click interval?

Can I use javascript to get the system's double click interval? ...

overriding JTree double-click to prevent node expansion?

It looks like there are 2 default mechanisms to expand a folder node in a JTree. One is to click on the expanded/collapsed icon next to a node. The other way is to double-click on the node itself. Is there a way to stop this 2nd mechanism? I would like to override the double-click on a node so it does something (updates another display ...