events

Determine when a winforms datagridview column type has changed in vs.net

I have a custom datagridview column with some extra properties that, in order to improve performance, need to be set only when the column type changes. It's not possible to override the ValueType property and I can't see any relevent events for a datagridviewcolumn. Is there a workaround? ...

how to get event coordinate with jQuery?

<a id="clickme">here</a> when I click on the link,I want to get the coordinate where click happens. how to do that with jQuery? ...

Property missing error when I add a new static event on Silverlight

HI there, I have added a static event with the following code: public class TypeChangedEventArgs : EventArgs { public Types TypeSelected { get; set; } } public delegate void TypeChangedHandler(TypeChangedEventArgs eventArgs); public static event TypeChangedHandler TypeChanged; And I do get an event handler for TypeChanged, the...

Looking for a list of programming or technology related "_Con" events to go to

I'm looking for a list of _Con events that are programming or technology related that you would suggest I go to. For example, DefCon, or anything else for that matter. And just to be clear, it doesn't need to have "Con" in the name to quality. Also, I'm in southern California, and most events of this sort are in the north, so some ...

Catching events from Iframe in Firefox

This should subscribe function "handler" on scroll events from every iframe on the page var iframes = document.getElementsByTagName("iframe"); for (i = 0; i < iframes.length; i++) { var current = getRealObject(iframes[i]) current.contentDocument.addEventListener('DOMMouseScroll', handler, false) } function getRealObject(objec...

Capturing URLs within the beforeunload event

When a user navigates away from my page the onBeforeUnload event triggers a confirmation box to be displayed to the user. At this point is there a method by which I can capture the URL that the user is navigating to? ...

Passing data from GUI to event dispatch thread in Swing

Hi, I am developing a Swing/Java app but having difficulties passing data from the initiliaser threads to one of the GUIs. The GUI is initialised by invoking an 'initComponents()' method on the event dispatch thread in its run() method: javax.swing.SwingUtilities.invokeLater(new Runnable() { public void run() { C...

Databinding issue with class that is asynchronously updated

When I bind a BindingList<ProcessDataItem> to a ComboBox an InvalidOperationException is thrown saying, that the collection that is enumerated changed. Instances of ProcessDataItem permanently receive updates when their corresponding measurement value has changed. The class implements INotifyPropertyChanged to notify its container of tho...

EventHandler managment in VB.NET

Hi I am right now in an project using VB.NET and needs to translate this C# code into VB.NET oldCommand.CanExecuteChanged -= commandReference.CanExecuteChanged; newCommand.CanExecuteChanged += commandReference.CanExecuteChanged; For me it seems like the an event hooking up on an another event? But I have tried everything to translate...

jQuery: get the file name selected from <input type="file" />

This code should work in IE (don't even test it in Firefox), but it doesn't. What I want is to display the name of the attached file. Any help? <html> <head> <title>example</title> <script type="text/javascript" src="../js/jquery.js"></script> <script type="text/javascript"> $(document).ready( function(){ ...

How to clone subscribtions to object's events is vs.net?

I have a custom datagridviewcolumn in which i've added an event. The problem is, I can't work out how to see who has subscribed to the current column object's event and add those subscriptions to the cloned column object. I get around this problem by asking the calling program to pass the address of the handler to a delegate in the cust...

Why is Event.RENDER not being dispatched?

I made a class, which has to register to the Event.RENDER event so that it will know when the stage is being rendered. The simplified version of my code looks like this: package { import flash.events.Event; import flash.display.Sprite; public final class Test extends Sprite { public final function Test() { ...

How do I stop a page from unloading (navigating away) in JS?

Does anyone know how to stop a page from reloading or navigating away? jQuery(function($) { /* global on unload notification */ warning = true; if(warning) { $(window).bind("unload", function() { if (confirm("Do you want to leave this page") == true) { //they pressed OK alert('ok'); } else ...

Using WeakEventManager in Windows.Forms application

When using weak events as described here http://wekempf.spaces.live.com/blog/cns!D18C3EC06EA971CF!373.entry in a Windows.Forms application the WeakEventManager leaks WeakReference objects. I think this is because without a WPF message loop the CleanupOperation is never executed, although ScheduleCleanup is called in WeakEventManager.Pro...

How to handle add to list event?

I have a list like this: List<Controls> list = new List<Controls> How to handle adding new position to this list? When I do: myObject.myList.Add(new Control()); I would like to do something like this in my object: myList.AddingEvent+= HandleAddingEvent And than in my HandleAddingEvent delegate handling adding position to this l...

YUI Event Utility problem

I create a button, when clicked, it activates a backup feature. My problem, backup is launched before I have clicked to this button. How, do I fix this problem ? Any Idea ? Here is my code (fragment) : (button) : var oSaveCuratedQuery = new YAHOO.widget.Button({ type: "button", label: "...

Set variable in parent window from iframe

I have a parent document with an embedded iframe. Inside the iframe I have an upload field. Once the user selects a file to upload, I trigger a jQuery change event. On that event I want to set a variable in the parent window to true, so that the parent knows that the upload has started. Does anyone know how to do this? Was trying th...

JCheckbox change listener get's notified of mouse over events!

Please check out this piece of code and tell me why on earth does it print out to the console when you move your mouse over the check box? What is the "change" event that takes place? import javax.swing.JCheckBox; import javax.swing.JFrame; import javax.swing.event.ChangeEvent; import javax.swing.event.ChangeListener; public class Tes...

.NET Events - What are object sender & EventArgs e ?

What do sender and eventArgs mean/refer to? How can I make use of them (for the scenario below)? Scenario: I'm trying to build a custom control with a delete function, and I want to be able to delete the control that was clicked on a page that contains many of the same custom control. ...

Implementing a callback in XML-RPC or SOAP

I am trying to get an understanding of how I can use SOAP or XML-RPC to create a remote, open API for my product. Problem is, part of my API will require me to be able to get events pushed from my server to the client - I will need to be able to "send a callback" and not only "call a function" as part of my API. Is there a good way to do...