events

Event Aggregation...What exactly is going on?

Hi, I have often times wondered about it but now that I have encountered a piece of logic that incorporates it, I thought I should go ahead and get some help on deciphering the fundamentals. The problem is as follows, I am looking at a WPF application that is utilizing the Composite Application Library. Within the source of the applicat...

Button Delegate not being called.

I have a page with a form in a user control. When the button is clicked the validation methods are called correctly client side and server side, but the delegate method is not processed. ASPX Page <%@ Control Language="C#" AutoEventWireup="false"... ... <asp:Button runat="server" ID="btnSubmit" /> ... Codebehind protected override ...

C# Button Click

I have the following button on a .aspx page: <asp:Button runat="server" ID="bntLogin" OnClick="bntLogin_Click" Text="Login" /> With the following in the .aspx.cs: protected void bntLogin_Click(object sender, EventArgs e) { // } When I try to build it I get the following error: 'ASP.reserve_aspx' does not...

Firing DropDownList SelectedindexChanged after binding list?

I am creating a control that loads three related dropdownlists at runtime, and all three bind their data from a database. when the first list changes value, the 2nd one should rebind based on that value, by default selecting the first item. However, as a result, the third list should ALSO rebind based on the selected first value of the 2...

How to catch onmouseleave event for TDateTimePicker component in Delphi 7

I need to detect OnMouseLeave event for TDateTimePicker component, but it doesn't contain such event in events list. Is there a way to detect it manually? ...

How to fetch attributes of image in silverlight?

Hello, I am loading an image to my silverlight application. This image will fit in a 3d model as a texture map. I need to fetch image attributes. For that I am using ImageOpened event, like this: public MainPage() { BitmapImage img = new BitmapImage(new Uri("imagens/textura.jpg", UriKind.Relative)); img.ImageOpened...

Convert javascript event to MochiKitEvent

does anyone know how to convert a normal javascript event to a mochikit wrapped event? cant seem to find how to do it anywhere... regards, P.V. Goddijn. ...

C#: How to test a basic threaded worker class

I'm dipping my toes in how to test multi-threaded stuff, but not quite sure how to get started. I'm sure I will figure more stuff out easier if I could just get stuff going, so I was wondering if someone could help me write an NUnit test case for this simple class: class Worker { public event EventHandler<EventArgs> Done = (s, e) =>...

Preventing click event with jQuery drag and drop

I have an elements on page that are draggabe with jQuery. These elements have click event wich navigates to another page (ordinary links for example). What is the best way to prevent click from firing on dropping such element, while allowing clicking it in not drag and drop state? I have this problem with sortable elements, but think i...

How to raise an event across classes and module

I have a WinForms class that presents a TreeView of some network nodes. I have a separate module that interfaces with the network and detects when nodes are added or removed. I would like the module to trigger the TreeView when the network changes. Example Public Class Main Friend Sub TV_Main_Network_Click ( ByVal sender As Sys...

C# - Event handling goes weird after I use serialization with my program

I have object A and object B deserialized from binary files. B has a private method which is used as a callback function and does some manipulation on a private data member when A raise an event. To clarify the basic structure: Class A { private static A instance; public static A GetInstance(){...}; private A(){} public...

Detect when user clicks link, but aborts

I am working on a Web CMS. When the user clicks on a link to move to a different page, or submits a form, I want a "please wait" animated GIF to show up in the top right corner to symbolize that loading is in progress. However, the user can cancel loading of the new page in their browser, for example by pressing the "cancel" button or E...

stack overflow on XMLListCollection collectionEvent

I'm working on a Flex 3 project, and I'm using a pair of XMLListCollection(s) to manage a combobox and a data grid. The combobox piece is working perfectly. The XMLListCollection for this is static. The user picks an item, and, on "change", it fires off an addItem() to the second collection. The second collection's datagrid then di...

OSX Quartz Event Taps: event types and how to edit events

Here's my code: #import <ApplicationServices/ApplicationServices.h> CGEventRef myCGEventCallback(CGEventTapProxy proxy, CGEventType type, CGEventRef event, void *refcon) { printf("%u\n", (uint32_t)type); return event; } int main (int argc, const char * argv[]) { CFMachPortRef eventTap; CFRunLoopSourceRef runLoopSource; even...

why PaintComponent event in Java happen everytime I use its Graphics Event?

Consider this code: public class StateChartPanel extends JPanel { private LightContext LC; public StateChartPanel(LightContext lc){ LC=lc; } public void paintComponent( Graphics G ){ super.paintComponent( G ); LC.DrawStateChart((Graphics2D)G); } } StateChartPanel is a panel ...

form.submit() causes uncaught exception in greasemonkey

Hello! I'm using a greasemonkey script to load a page with ajax and automatically fill in the form fields inside the page and submit the form. The problem is that when the form.submit() statement is executed I get an uncaught exception error: "uncaught exception: [Exception... "Component is not available" nsresult: "0x80040111 (NS_ERRO...

c# determine if a KeyGesture is being pressed/used

i would like to determine if a key gesture is being pressed. I have a control that will kick into edit mode on a keypress, but iw ould like to be able to assign an arbitrary KeyGesture and then test for it in a OnPreviewKeyDown method. any ideas? another way to ask this question is how can i get a KeyGesture from the set of keys current...

Windows Forms Click event repeating itself

I have a strange problem with a Windows Forms event. To be exact, it's a KryptonHeaderGroup's ButtonSpec Click event, but it also happens with a plain vanilla System.Windows.Forms.Button. In the click event, the user interface is brought down (there's a label and a cancel button left), and then an expensive LINQ query is built from prev...

What's the last possible event I can catch after a user control has been shown in .net, winforms?

Hi, as the title says, I'm looking for an event to catch after a user control has been shown. At the moment, I have to set a do-once variable and catch the Invalidated event. ...

Intermittent issues with Win32 named events

Hi all, Experiencing intermittent issues, related to named events when processes are running in different user contexts: WaitForSingleObject (and WaitForMultipleObjects too) for such event handle fails with WAIT_FAILED (GetLastError returns 6 - Invalid handle value). We have an application to schedule tasks on Windows machines under us...