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? ...
How can I receive a message from one client and Callback to all Clients connected to the Host to send that message? ...
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...
I want the event when user pressed on copy (pop up menu) in iPhone. ...
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...
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...
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 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 ...
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? ...
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...
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...
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? ...
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...
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...
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...
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...
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" %> <%@...
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 ...
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 ...
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 ...
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...