events

WCF - Callback and/or Event

How can I receive a message from one client and Callback to all Clients connected to the Host to send that message? ...

C# removing an event handler

Been doing this for a while but haven't noticed I have been using a "new" each time I remove an event handler. Am I supposed to be creating a new object? Basically is there a difference between 1 and 2? (1)ethernetdevice.PcapOnPacketArrival -= new SharpPcap.PacketArrivalEvent(ArrivalResponseHandler); (2)ethernetdevice.PcapOnPacketArri...

event + copy + iPhone

I want the event when user pressed on copy (pop up menu) in iPhone. ...

How to enable form submit using onchange event?

Hi all! In my project I need to validate the form while using entered data to enable submit button only after the correct data have been entered. I hook onkeypressed, onclick, onblur and onchange events for input field, but none of that is fired when user pastes values using mouse into the field. Currently I use setInterval to periodica...

call an eventhandler with arguments

Visual Studio 2008, C# 3.0. I have a method below which calls an event handler. I would like to pass the two arguments received by the method to the event handler. I would like to do something like this: wc.DownloadDataCompleted += wc.DownloadedDataCompleted(strtitle, placeid); Is this even possible, if yes, how would I go about do...

How to raise event using addHandler...

I am comfortable with Vb.Net events and handlers. Can anybody will help me with how to create event handlers in c#, and raise events. ...

When to use custom c# events

When is it appropriate to raise an event in C#? As an example, in our system we have data objects being sent to us, say 50 per minute, from an external system. Upon receiving a data packet, we need to have it processed by another object. Would an event or a simple method call be better to use in this situation? An event seems like a ...

How to do an action when an element is added to a page using Jquery?

When I add something of the class "myClass" I want to call a function on this element. It would be something in the lines of: jQuery(".error_message").live("load",function(){ alert("test"+this); }); ... except this doesn't exist. What's the best way of doing this? ...

mouse click events in an NSView subclass

Hello, I have an NSView subclass that gets initialized with an OpenGL context and has a bunch of mouse event handling (onMouseDown, etc...). I have an app using it which has a main Cocoa window that contains the view and all the mouse events are working properly. However, I'm trying to use it now in another app where i have a secondary...

C# 2.0 Dynamic Event Subscription with known event signature

Hi, Similarly to this question: http://stackoverflow.com/questions/45779/c-dynamic-event-subscription I would like to be able to wire up an event handler to an event fired out of a dynamically-created object. I am doing this to verify that my JavaScript and other non-.NET code is able to connect to the objects' events. My event signa...

ASP.NET MVC & Silverlight - fire an event in both with one button?

Hey everyone, I currently have a little form with a silverlight bit for a person to sign their name and I was wondering if there was a way to have the submit button post to the controller and a silverlight code behind action... I tried adding a dom event to fire silverlight code but I guess that doesn't fire both events... Any ideas? ...

Why does QWebFrame::evalutateJavaScript do nothing in this case?

I'm calling QWebFrame::evaluateJavaScript in one place in my code and it has no effect. However, if I replace this call with the setTimer(0) call and will call the original function when this timer times out it works. How do I know if it works or not? The JavaScript code which is evaluated in my case calls one JavaScript function which i...

Extending mootools Element.Events

I'd like to create a custom paste event that would fire either input (FF) or onbeforepaste (IE). I've read pretty much all about creating custom events in mootools, still the event does not get fired in any of the browsers. The extension (took the docs and the 'mousewheel' event as a reference): Element.Events.paste = { base: (Browser...

touches in touch event handling in UIView vs UIViewControllers

So, I'm capturing multiple touches and determining the number and where each of the touches occurred and I'm seeing different behavior between a UIView UIViewController. Basically, the event handler is coded below: (in this case the touchesEnded, but it really doesn't matter). What happens in the View, is that I get the entire collect...

How to disable SWT event listening if the action is not triggered by user

I notice that the ModifyListener will be triggered regardless the action is caused by user or system itself, for instance, Text t = new Text(shell, SWT.BORDER); t.addModifyListener(new TModifyListener()); ............................................... private class TModifyListener implements ModifyListener { @Override public void...

Declarative event handling from ASP.NET user control to page

Hello, I am trying to figure out how to declaratively pass in a event handler into a user control, but I am stumped. All I can make work is the user control's event handler.. I can't seem to bubble up the caught event into the parent page. Ideas would be quite welcome. Here is my code: Default.aspx: <%@ Page Language="VB" %> <%@...

wxpython -- threads and window events

I have a wxPython application (http://www.OpenSTV.org) that counts ballots using methods that have multiple rounds. I'd like to do two things: (1) For a large number of ballots, this can be a bit slow, so I'd like to show the user a progress dialog so he doesn't think the application is frozen. (2) I'd like to allow the user to break ...

Handling event simultaneity at the web-application level?

Hi all, I'm sure this problem has been considered or even solved before; I just don't know how and what all my options are. Would greatly appreciate your ideas, any links to useful info... even if you don't have actual code/implementation to share. Many thanks! Let's say: I have a bunch of nodes on the Internet. These could be either ...

Mouse enter mouse leave? Expression blend (silverlight)

Hi I'm a designer using Expression blend. Does anyone know how to use the events tab? I'm looking at a column of input fields, such as mouse enter etc. Not sure what to put in these any ideas? Thanks Judi ...

C#.NET - Can I change which class the designer adds events to?

I have my own custom control derived from System.Windows.Forms.TreeView which is present on the designer toolbox. I add an instance of this custom control to my form (using the designer). The purpose I created an inherited control is that I want to let the control itself handle its events since it's supposed to act as a View in a stand...