events

How to Catch ASP.Net RadioButton CheckChanged Event in a DataGrid

I have a RadioButton in a TemplateColumn of a DataGrid. Each RadioButton is part of the same group to make sure that only one is selected and they are set to AutoPostBack. What I would like to do is trap the OnCheckedChange event and handle it like a button click within the DataGrid (using the OnItemCommand event handler). Does anyone ...

have anyone seen a good asp.net mvc event month calendar

I am migrated a site from asp to asp.net-mvc. I was using a third party event calendar asp code. does anyone know of a good asp.net mvc event calendar where i see a month view and it will show events in the date cells. ...

as3 Events - Type Coercion failed?

I am dispatching events from a child to a parent swf. It was working properly, until I used a preloader swf to load the parent, then the parent stopped getting events from the child. I get this error now: TypeError: Error #1034: Type Coercion failed: cannot convert com.company.events::MyCustomEvent@22494251 to com.company.events.MyCusto...

Button with an X at the upper-right corner of the form, how to catch this event @ C#

Which event is fired when I close a form with the X button? I want the event that fires only when the X button is pressed; I know that there is a FormClosing event, but the problem is that it fires each time when form is closed... It also fires when frm.close() executes, and I don't want that to happen. ...

C# Timer Class - Stop after a certain ammount of executions

Hello, I've been looking into the Timer class (http://msdn.microsoft.com/en-us/library/system.timers.timer.aspx), but the thing about the timer is, it's on going. Is there a way to stop it after one go? or after 5 go's? Right now i am doing the following: using System; using System.Collections.Generic; using System.Linq; using System...

WPF WindowsFormsHost control captures Stylus events before they bubble

I'm working on a WPF 3.5 app and attempting to add multi-touch to a some older Windows Forms content (Flash ocx control). I expected to be able to throw a WindowsFormsHost control on a WPF Window, call CaptureStylus() on the WPF Window and then intercept all Stylus events before they made it down to the WindowsFormsHost. However, any t...

ASP.NET: Very simple event handling not working

I have an object Order with a simple event, Public Event ErrorOccurred(ByVal msg As String) that I raise in the constructor like so when an order cannot be found (along w/setting a boolean error flag: RaiseEvent ErrorOccurred("This order does not exist in the database.") [Error] = True I have a webform subscribed to the order's Er...

[C++] BHO Handle OnSubmit event

Basically I want to develop a BHO that validates certain fields on a form and auto-places disposable e-mails in the appropriate fields (more for my own knowledge). So in the DOCUMENTCOMPLETE event I have this: for(long i = 0; i < *len; i++) { VARIANT* name = new VARIANT(); name->vt = VT_I4; name->intVal = i; VARIANT* id ...

mac screensaver start event

Is there an event fired when screensaver starts? Like for keychain locking: OSStatus keychain_locked(SecKeychainEvent keychainEvent, SecKeychainCallbackInfo *info, void *context){...} ...

Routing Key events to other control

Is there any standard way to route all Key events from the control A to other control B? I wish that the keyboard focus will still be on A however the event handler of A would trigger the all event handlers of B for the key events. edit: Clarification: calling a specific event handler I wrote for B is not enough. I need to mimic the act...

Update: How to find event listeners on a DOM node in prototype?

I'm looking for an updated answer to this question. It seems that Event.observers is no longer used (perhaps to avoid memory leaks) in Prototype 1.6+, so how do I track down now what event listeners are attached to an element? I know Firebug has a "break on next" button, but there are several mouse listeners on the body element that e...

WPF - How do you add an Event Trigger to a data template for a business object?

PROBLEM: I have a custom class named BlinkingLight. I also have a static ObservableCollection BlinkingLightCollection. In the UI, I have a ListBox that is bound to BlinkingLightCollection. In my ListBox I want to essentially display each BlinkingLight object as a custom control that looks like box with an LED light that has an animatio...

Delphi: How to know when a TEdit changes size?

i need to update items around an edit box when it changes size. TEdit has no OnResize event. An edit box can resize at various times, e.g.: changing width/height in code form scaled for DPI scaling font changed And i'm sure others i don't know about. i need a single event to know when an edit box has changed its size. Is there a W...

How can I Have a WPF EventTrigger on a View trigger when the underlying Viewmodel dictates it should?

Here's the scenario: I have the following user control, the idea is that it's view model should be able to signal to the view that it needs to "Activate the Glow", thereby playing the Storyboard. <UserControl x:Class="View.UnitView" ... > ... <Storyboard x:Key="ActivateGlow"> ... </Storyboard> ... <!-- INVALI...

Event problem C# .NET UserControl

I have an UpdatePanel and in it a regular Panel. In the Panel I dynamically add simple UserControls. The Usercontrol has a Button and a Label. When I click on a button in a control it removes all controls in the Panel which I have added dynamically. Can anyone help? int controlID = 0; List<Control> cc = new List<Control>(); ...

Naming an event: describe what just happened or describe what is about to happen? And why?

Note: I'm not talking about the names of event handlers. I'm talking about the names of the events themselves. I tend to name events such that they describe what happened just before the event was raised. Adjectives tend to dominate this convention (CLICKED, SAVED, CHANGED, LOADED, etc). Some competent peers have recently exposed me ...

Issues with jQuery .blur() and .focus() events

I have a form with a few input fields. When a user clicks on an input field, a hidden div appears with some selections for that field, they can then choose an option, and this set as the field value. Currently, the way the div gets hidden is when the user selects an option. This works fine, but what if a user does not want to select...

Winforms - order of Load and Activated events

One of our users has sent in a log for our .NET Winforms application that indicates that the Activated event is occurring before the Load event. I didn't think this was possible and have coded with the assumption that Load would always happen before Activated. Has anyone else observed Activated occurring before Load? If so, why and ...

Generic events and additional parameters in Actionscript 3.0?

Assuming the following pattern: someObjectInstance.addEventListener(MyDisplayObject.EVENT_CONSTANT, _handleMyEvent); private function _handleMyEvent( event:Event = null ):void { // Event handler logic... } If I wanted to add a required parameter to the handler function am I able to do this and still use a "generic" event and event...

ASP.NET putting dynamic controls on page in reverse messes up events

I have this weird problem when putting textboxes on the page in reverse. The whole event system is messed up. Changing one textbox fires TextChange on all textboxes. I can fix this by putting the controls in a list first and then call add while iterating trough the list in reverse. But i just want to know why this fails. Heres some code ...