events

Events on ASP.NET UserControl raise every other click?

Yes, there is a similar question here. However, that question doesn't seem to have code attached to it (though it might have at some point; I see answers alluding to code), and the accepted answer (and other advice) on it aren't getting me where I need to be. I have a fairly complex, and frankly not-well-designed VB.NET web app I'm exte...

What is the difference between the KeyCode and KeyData properties on the .NET WinForms key event argument objects?

The two key event argument classes KeyEventArgs and PreviewKeyDownEventArgs each have two properties, KeyCode and KeyData, which are both of the enumeration type Keys. What is the difference between these two properties? Do the values in them ever differ from each other? If so, when and why? ...

WPF MouseLeftButtonUp Not Firing

Strange happenings in WPF... When I set the event to MouseUp I can get it to fire when I right-click the button. But this won't fire with either click! <Button MouseLeftButtonUp="btnNewConfig_MouseUp" Name="btnNewConfig"> <StackPanel Orientation="Horizontal"> <Image Source="Ico...

jQuery Plugin: Handling Events

I'm currently working on a jQuery plugin and I'm wondering if it would be possible to have the plugin listen for events rather than being triggered by events. So instead of this: $('#element_id').mouseover(function() { $(this).plugin(); }); $('#element_id').mouseout(function() { $(this).pluginHide(); }); I want to try to do ...

capturing javascript events in c#

I'm running google earth in a web browser that is embedded in a c# app. I have captured an event through javascript that fires when the user right clicks on the globe. How can I bubble an event to go from the javascript to c# so that it can be handled there? Thanks ...

What is the class System.Web.httpApplicationFactory? I see it in my call stack, but can't find it in the framework.

I have a class Application that my global.asax inherits from. The class has this method: protected void Application_Start(object sender, EventArgs e) { // ... } In my understanding this is basically an event handler that is automatically added to an event (based on the method name [*]). I tried to find out what event exactly, so I...

Forcing a tab to the next control in an extended .net control

Say I'm extending a TextBox called CustomTextBox in .net. In certain situations I would like to force a tab to the next TabIndex on the form. Is there a way to do this beyond getting all the controls contained in CustomTextBox's parent, sorting them by their TabIndex, and then focusing the next ordinal one? ...

Should DOMNodeInsertedIntoDocument bubble?

I've been always thinking that DOMNodeInsertedIntoDocument/DOMNodeRemovedFromDocument events should not bubble, and for me that made enough sence. However, just recently I looked into specification once again and found out that in one location it says these events should not bubble (Complete list of event types), while in other location ...

eventsend and eventreceive problem

Can anyone send me some sample code on how to send and receive more than one event in a single task in vxworks. ...

Embed Tag in HTML - How can I know in Javascript that the .wav file is done playing?

Right now I'm trying to add a button to a webpage that when pressed will start playing a .wav file by dynamically adding an embed tag to the DOM. The text switches to "Stop" while the sound plays, and I'd like to be able to switch it back automatically to "Play" once the file has finished playing. How would I be able to execute some Jav...

Disable JavaScript keypress events in iframes

How do I disable the support for JavaScript keypress events in iframes? I need keypress events disabled only in specific iframes, so doing a catch-all-events-and-make-em-do-nothing solution is not an option. ...

Handle Swing events in JUnit test

I have Swing java application with network communications to several "Players" that are represented as player objects, each with their own communication thread. The app has a "Team" object managing all player objects. Several UI components listen to events passed from the players through the Team object. In my design, the team object f...

Single event raising pattern for multiple controls

I have several controls on a page. It happens to be a Silverlight page but I don't think that it matters for this question. When a control's value changes, a change event is raised. In this event I do a calculation and change the value of one of the other controls. This in turn causes the other control to raise a changed event which in ...

Which events do/do not fire when a page is returned from the asp.net cache?

I have an App which users have to log into. Once logged in, they may perform a search against our database. Their Identity can affect the search results. I wish to use Cache pages of the results. VaryByParam sounds good for this. However I do not understand the events that do or do not fire when a cached version of a page is returned...

Problems with itemRollOver and itemRollOut events on List component

I have set the itemRollOver and itemRollOut event listeners on a List component, but whenever I roll the mouse over a list item, both the over and out events of the same list item fire in succession right after each other. My list uses a custom itemRenderer. Any ideas why this might be? The Adobe documentation doesn't provide much insig...

Events in cpp/opengl

Hello I would like to create infrastructure to handle events for my opengl project. It should be similar to what wpf has - 3 types of events - direct, tunneling, bubbling. I then want to handle events such as mouse up, down, move etc. How should i approach this problem? Is there any library to handle this. thanks ...

Visio Selected Page Event

Hi, I want to do something when the selected (active) page is changed in Visio document. Is there any ways that I can do this? Thanks. ...

Testing Events from Objects

I have been trying to get more in to TDD. Currently keeping it simple with lots of Debug.Asserts in a console application. Part of the tests I wanted to complete was ensuring that events were raised from the object, the correct number of times, since client code will depend on these events. So, I began thinking about how to test the ev...

"Re-Raising" Custom Events in .NET (ASP.NET in this case)

Hello all, I'm working on an ASP.NET page, using VB.NET and I have this hierarchy: Page A   - Web User Control 1     - Web User Control A     - Web User Control B     - Web User Control C I need to raise an event from Web User Control B that Page A will receive (the event flow will be Web User Control B -> Web User Control 1 -> P...

Detect whether FocusEvent of component is lost or gained

I implementing a EventQueue and get notified when AWTEvents are send. I wait till instances of FocusEvent are send to the dispatchEvent methode. The FocusEvent by itself does not have a methode to ask if the focus of the component is gained or lost. The methode paramString returns a String in which the information is placed, but i dont ...