events

Disable context menu in Internet Explorer control

How do I disable the context menu in the IE WebBrowser control and instead perform custom handling of the right-click event in C#? ...

PreviewLeftMouseButtonDown Listeners Report Different MouseButtonEventArgs.Source For Same Event

I'm getting some unexpected behavior in WPF. Here's my scenario: I have a UserControl on a Window. Let's call it "Surface". It has a Canvas on it. I have a second UserControl. Let's call it "PlayingCard". I have the PlayingCard UserControl added as a Child of the Surface's Canvas. Visually it displays just as it should, on top of th...

Determine list of event handlers bound to event

I have a WinForms form that won't close. In OnFormClosing, e.Cancel is set to true. I am guessing that some object in my application has bound to the Closing or FormClosing event, and is blocking the close. To find out, I'd like to determine what delegates are bound to one of these events. Is there a way to determine the list of handler...

Jquery Selector that search for events

I need to select all elements, that has binded "click" event? Is there such selector exists? ...

How to further decouple this WPF example toward MVC, MVP, or MVVM?

I've decoupled events in this WPF application in the following way. What is the best way to continue decoupling? Shell.xaml: <Button x:Name="btnProcess" Content="Process" Margin="10"/> Bootstrapper.cs: public void Run() { Shell shell = new Shell(new Customer()); shell.Show(); } Shell.xaml.cs: public Shell...

Validating Event Results in Loss of Button Click Event in Winforms

Background: I have a form with a "clear form" and a "cancel" button. If I have invalid data inside a dropdown and click either of these buttons the dropdown's validating event fires. I've added code to the validating event to succeed when either "clear" or "cancel" are pressed. Problem: I would expect that the next thing that will h...

AS3 Event Bubbling outside of the Scenegraph/DisplayList

Hi just wondering if it is possible to take advantage of event bubbling in non display list classes in AS3. For example in the model of an application where there is a City class that contains many Cars. What methods are there to attach an event listener to a City object and receive events that bubble up from the child Cars. To clarify ...

Software to monitor events fired from code

I'm having trouble within a block of code that I believe is related to a mouse click event but I cannot seem to capture the exact event within my code. I've used the C# debugger to step through my code and after the end of one of my events the code simply locks up. The purpose of my post is to ask if there is any software that will watc...

Can there be more than one AWT event queue?

I've got a thread dump of an applet running on JVM 1.6.0_12 in Opera 9.64 Build 10487 - and it shows three event queues! As far as I know the Java Swing event handling is single threaded - did this change in any recent update? My problem is, that multiple event queues will tend to cause deadlocks since I've got some more locks than only...

ASP.NET Click Event Handle - How to pass an argument in VB.NET ?

I'm using the accordion Ajax control. For each Accordion pane I have text and a Button dynamically created. When the user fires the click event I want to know what button in which pane was fired. So I want to handle the button's click event in a way that I can send the ID (probably by event args) to the event handler in order for the han...

speeding up multiple onmouseover events in IE

I have a web page with many (up to 100+) html elements on it. Each one has an onmouseover event registered to fire to do some logic and rendering depending on which element is hovered over. I am finding that in IE the more onmouseover events that are regitered the longer they take to fire. In Firefox the speed is fine and in Chrome ev...

Behavior of WaitForMultipleObjects when multiple handles signal at the same time.

Given: I fill up an array of handles with auto reset events and pass it off to WaitForMultipleObjects with bWaitAll = FALSE. From MSDN: “When bWaitAll is FALSE, this function checks the handles in the array in order starting with index 0, until one of the objects is signaled. If multiple objects become signaled, the function returns t...

How can I temporarily prevent a scrollable div from scrolling?

Here is my current situation: I have a web page containing a couple scrollable divs. Each of those divs contains a number of objects. I am using YUI to display popup menus of actions that can be performed on each object. Each object has its own menu associated with it that is constructed and displayed dynamically. The popup menus can be...

Ignoring queued mouse events

I have an application written in C# targeting .NET Compact Framework 3.5, running on Windows CE. From time to time, operations lasting for a second or so are being performed on the UI thread. I currently set the Cursor.Current property to indicate that the application is busy, but this does not prevent mouse events from eager users to qu...

Click event in Shoes

On clicking a slot , I change the contents of the slot to provide user feed back, then call some code which takes several seconds to run. However the changes to the slot do not render until after the 'slow' process has completed. Is there any way I can force the rendering to happen before the 'slow' code runs. In the following example t...

Wait for user input

i have a process that makes calls to a webservice and handles the responses, some of the responses require some user input so they can be handled. When user input is required i want to trigger an event, in the event handler i want to display a form to the page then wait until the user input is posted back then have the event handler retu...

Are there any build-in cross-thread events in python?

Hello. Is there any build-in syntax in python that allows me to post a message to specific python thread inside my problem? Like 'queued connected signal' in pyQt or ::PostMessage() in Windows. I need this for asynchronous communication between program parts: there is a number of threads that handle network events and they need to post t...

removed event but still firing

I'm having a strange bug where an undesired event is firing. I can trace into the code and see that the "onRowLeave" event handler is being removed using the -= syntax, then the next line a DataSource is changed which causes the "OnRowLeave" handler to fire! So it seems the removal is not working. I can tell it's not being added in ag...

Windows event for new added application into memory

Hi. Is there any way to get some Windows event when new application(s) gets added into memory/taskbar? I can get running applications by iterating through Process.GetProcesses() (although, explorer processes will be excluded for some reason), but that means that I have to check for new processes every few seconds which isn't very good. ...

In WPF, how can I cancel the keypress after processing it with PreviewKeyDown?

In my WPF Datagrid I capture the "delete" key, process it, and then the datagrid itself deletes the row from the UI by continuing to process its own handler for the delete key (which is what I want). But now I want CTRL-S to open up a search bar, which it does, but it also goes on to blank out the cell the user was on when he pressed CT...