events

Is there an ASP.NET event that occurs after postback, but before the page is destroyed/recreated?

My ASP.NET form contains a collection of dynamically-created radiobuttons that are created and configured in the Page_Load event handler. Normally, I process postback data in the Page_Load handler, using the condition: if (IsPostBack) However, since the controls that I need to access are created IN the Page_Load handler, the postba...

Virtual Mice in C#

Hi guys, Is there anything that we could do for implementing VIRTUAL MICE? I mean, I want to have multiple mice within the whole OS, but they must be all VIRTUAL (I'm not talking about the applications that serve multiple mice driver for PS/2 or USB mice or Microsoft's MultiPoint Mouse SDK.) It is like creating two objects: Mouse mous...

What are lightweight events?

Ran a handful of times into the term lightweight event. The texts were not accompanied by any code snippets to figure out the idea behind the term. I would really appreciate it if anyone could explain what are lightweight events about and throw in an example. ...

jqtransform form events problem

I'm a web designer with css experience, but I'm not a JS developer. I used jqtransform to style a search form , the problem is it removes all events from selectors and the search button . here is the code before jqtransform <input id="go-search" type="button" name="btn_search" value="search" onclick="searchLocations()" /> and after ...

Sequence of the Events in Java

Hi, I have two events for two seperate components, but there is a problem. JTabbedPane's stateChanged event is fired before JFormattedField's focusLost event. Is there a way of making stateChange event to be fired after focusLost event. Thanks, Tuna ...

Design Question: communication between objects within same client-server app

Have a SocketClient which communicates asynchronously with a server. SocketClient relies on Socket.BeginReceive() and Socket.EndReceive() to communicate. As incoming data is received by the Socket, it's immediately decoded by System.Text.Encoding.UTF8.GetDecoder() and parsed into strings delimited by '\n' char, which strings are then pas...

Excel automation: Close event missing

Another hi all, I am doing Excel automation via Interop in C#, and I want to be informed when a workbook is closed. However, there is no Close event on the workbook nor a Quit event on the application. Has anybody done that before? How can I write a piece of code which reacts to the workbook being closed (which is only executed if the ...

how to change actions on key pressed in contenteditable tags.

when I press 'enter' in contenteditable area a new <div> is produced what I rather want to add <br /> tag. How can I manipulate this behaviour. How is it done in WYMeditor. Is there any other method than preventdefault() and handle it ? ...

Test if Multiple EditTexts are empty

Say I have multiple EditTexts in an application. When I click a Button, I want to test what EditTexts are empty and what EditTexts have content. I also want the id of the EditText whose content is NOT empty. How would I do that? Could someone write the code for the Button click handler. My six EditText's ids are FirstString, SecondString...

Detect page load completed event in Firefox

I'm writing a Firefox add-on that do something after the webpage is completely loaded.My current code is var target = this; const STATE_STOP = Components.interfaces.nsIWebProgressListener.STATE_STOP; const STATE_IS_WINDOW = Components.interfaces.nsIWebProgressListener.STATE_IS_WINDOW; const STATE_IS_DOCUMENT = Components.int...

Is it possible that GUI event interrupts running code from the GUI thread to execute its own event handler method?

Hello folk, I have a weird behavior in my GUI code. If the user produces a lot of events in a short time, it happens that a running event handler method gets interrupted by another event handler method. Since everything runs in the same thread (GUI thread) everything should run sequential and an interruption should not be possible, or d...

"Scrolled into Viewport"-like event in Silverlight

In Silverlight, is there any way to get a notification event if a Control (or any FrameworkElement) has been scrolled into the viewport and is now visible? I want to implement something like the Lazy Load Images jQuery Plugin. ...

How to access fsevents to get the file system events?

Hi All, Though i had read the fsevents article provided by apple developer site, i m having issues in receiving the events. I need some samples to fetch events. Need some samples. Thanks in advance. rgds, herby ...

jqtransform form selector (onchange) problem !!!!

I'm styling a form with Jqtransform script. The form includes a selector which enlist some cities, when i click a one, it should update the selector below it with some locations within that city. here is the code of the selector <select name="city" id="city" class="wide" onchange="populateDestrict(this)"> It was working fine with de...

Updating a C# 2.0 events example to be idiomatic with C# 3.5?

I have a short events example from .NET 2.0 that I've been using as a reference point for a while. We're now upgrading to 3.5, though, and I'm not clear on the most idiomatic way to do things. How would this simple events example get updated to reflect idioms that are now available in .NET 3.5? // Args class. public class TickArgs : Eve...

Stop scrolling to ID when opening jQuery Modal via URL

I need to be able to open an ID'd jQuery UI Modal on a page when that modal's ID is passed in the page's URL. For example: http://mysite.com/visit.html#directions #directions is an ID'd DIV at the very bottom of the page, right before the closing BODY element. It's instantiated as a jQuery UI dialog on page load, then I'm running a ...

Opening a window in javascript (window.open) on rollover without getting blocked by popup blockers

I like to open a new window (not in the same window) in JavaScript with window.open on rollover (without click event) and it gets blocked by popup blocker in IE and Firefox. Is there a workaround for this? ...

Flash AS 3 Loader OnComplete Inside a Loop

I had posted my question as an answer to this question: How to get associated URLRequest from Event.COMPLETE fired by URLLoader Sorry. Here is my question again: Hi, How can I make your function work for loader object in a loop? Thanks! Meengla Here is my existing (rough) code; I always get the mylabel from the last element of the a...

Multithreaded Delegates/Events

I am trying to disable parts of the UI in a .NET app based on polling done on a background thread. The background thread checks to see if the global database connection the app uses is still open and operable. What I need to do, and would prefer to do it without polling on the UI thread, is to add an event handler that can be raised by...

keypress event not being triggered only at start and end of text field in Firefox (JQuery)

I'm listening for keypress events on an input field with delegation. For some reason, Firefox doesn't trigger the delegated event for cursor UP when at the start of the field, or cursor DOWN when at the end. LEFT and RIGHT work as expected all the time. Directly binding an event listener to the field works fine, so it has to be somethin...