events

AppDomain.UnhandeledException event not fired

In a WPF application, the app simply crashes, without the above event being fired. (I'm also registered to DispatcherUnhandeledException, which doesn't fire as well.) I conclude that it doesn't fire since the handler is defined to place a log entry. When looking at the log, there's no corresponding entry. It happens in a production en...

How to handle events from button's from browser

hey there, i want to implement a little feautre with jquery, where i want to catch the event that occures when the user clicks on the "Back" button of his browser, to get to the last page. but how? didn't find any working solutions :-( ...

Passing arguments and values from HTML to jQuery (events)

What is the practice to pass arguments from HTML to jQuery events function. For example getting id of row from db: <tr class="jq_killMe" id="thisItemId-id"> ... </tr> and jQuery: $(".jq_killMe").click(function () { var tmp = $(this).attr('id).split("-"); var id = tmp[0] // ... } What's the best practise, if I want ...

NHibernate - EventListener for SaveOrUpdateCopy

Hi. I do Update with SaveOrUpdateCopy(). Now, I have attached an event for this: this.EventListeners.SaveOrUpdateCopyEventListeners = new IMergeEventListener[] { new AuditableSaveOrUpdateCopyEventListener() }; In the AuditableSaveOrUpdateCopyEventListener, I have inherited from DefaultSaveOrUpdateCopyEventListener and overrid...

Monitor clicks on application menu items such as open/save/copy/paste

I need to write a program that detects (and records statistics of) how often the user uses the mouse to activate application menu items (such as open, save, copy, paste). My question is: is there a way to detect that the user actually clicks one of these menu items? I have used Winspector to see what WM_xxx events are being fired, but ...

Setting up layout/events on iPhone

I am using Open Source toolchain to compile my iPhone apps. So I have no Interface Builder or XCode. How would I setup the layout of widgets like UIButton, UITextView, etc. Also, how would I add an event handler to those UI widgets? Please remember that I don't have Interface Builder or XCode. ...

Drupal - installed Events modules (calandar) - Views missing

I installed installed Events (calendar) module, and am able to add events and view events using event and event/list paths, however documentation talks about a default view being provided. I don't have this view and I searched through event module to find it (searched for "$view = new view" in install and elsewhere). Is this available in...

What's the VB.NET equivalent of this C# code for wiring up and declaring an event?

I'm working on a tutorial to build a media player in Silverlight and am trying to wire up an EventHandler to the timer.Tick event of a DispatchTimer object so that the time of the video is synced with a Slider object. The sample code is in C# and I can't for the life of me figure out the proper syntax in VB.NET with RaiseEvent and/or Ha...

Javascript - Text Input Attributes

I need to create a form element <input disabled type="text" value="Shui Mu Tsinghua" /> which is disabled by default. It enables when onmouseover occures. onmouseover="this.disabled=false;" And is disabled by onmouseout onmouseout="this.disabled=true;" What I need is to check the following. If the <input> is focused t...

Dojo: programatic sort in enhanced data grid

How do I create a programmatic sort in EDG? I have used the doh robot, but I want to do it directly, I've noticed the sort methods use an e event, is there anyway I can generate or obtain this e event? ...

What's the proper way to override Rails ActiveRecord creation/deletion events in a subclass, such as after_create

Hi, I have a class heirarchy as follows: class A < ActiveRecord::Base after_create { |i| #do something } end class B < A after_create { |i| #do something else after what A did } end I want to have A's behavior performed in B when after_create is invoked, but I am not sure of the proper way to write the after_create me...

How to translate such AS3 class into C#?

So I try to create opensource C# project for slicing FLVs I began with translating of existing project called flvslicer Can any one please help me with translating one of their classes package org.bytearray.video.events { import flash.events.Event; import flash.utils.ByteArray; public final class MergedEvent extends Event ...

What is Event in C#?

in c# what is Event? Is it similar to ActionScript Event ? Is it different? In what? ...

How do I pass custom variables to javascript events?

I have a user control with a javascript function which references some controls within the user control. This user control works perfectly when there is only one instance of it, but I'm now building a page where I have two instances of the user control. In IE7, it works fine, but in FireFox, it is getting confused that there is two fu...

How to add event listeners in C#?

How to add event listeners in C#? ...

What jQuery is triggered when a user selects a "drop down list" option

I want to display a different form for different selections of this drop down list: <label> <select name="type" id="type"> <option value="object" selected="selected">Object</option> <option value="number">Number</option> <option value="text">Text</option> <option value="date">Date</option> <option value="time">Time</option> <option ...

Basic QT Event handling / Threading questions ?

Greetings , I am new to QT (4.6) and have some basic questions regarding its event mechanism.I come from Swing background so I am trying to compare it with QT. 1) Does Event-processing-loop run in seperate thread? (like EventDispatch thread in Swing) ? 2) If we open several 'QMainWindow' do they run in several threads? 3) Whats the be...

How can I safely raise events in an AsyncCallback?

I'm writing a wrapper class around a TcpClient which raises an event when data arrives. I'm using BeginRead and EndRead, but when the parent form handles the event, it's not running on the UI thread. I do I need to use delegates and pass the context into the callback? I thought that callbacks were a way to avoid this... void ReadCallbac...

Windows evented API to react on drive mounting?

Does Windows provide some sort of evented API so I can run some code whenever a drive (say a usb stick) is attached? Similar to how ReadDirectoryChangesW is for events on the filesystem? I am not interested only in hardware changes, a user can also mount a volume, a ftp drive or similar. ...

SortCommand Event handler of DataGrid not working

I have created an event handler for the OnSortCommand of DataGrid: <asp:DataGrid id="dtgBatches" runat="server" Width="100%" CssClass="intTable" EnableViewState="False" DataKeyField="bat_GUID" GridLines="Horizontal" AllowSorting="True" AutoGenerateColumns="False" AllowPaging="False" > <SelectedItemStyle Ba...