events

Quirky Winforms Font Behavior On MouseHover

So I'm working on a basic subclass of Label that supports editing. The editing part works fine--I insert a text box with no background color or border on click, commit changes on enter or loss of focus. The little thing that's giving me trouble is related to some basic font styling. The label is to underline with the MouseHover event (...

Can you get a keypress event for the phone call key in Flash Lite?

All mobiles have a green dialing key. Do you get an event for this in Flash Lite 3.0 or above? ...

WPF Window.Close() not triggering UserControl.Unloaded event

I have a Window that contains a custom UserControl. The UserControl needs to know when the Window containing it has been closed so that it can terminate a thread. My best guess as to how to accomplish this is to handle the UserControl's Unloaded event. However, the Unloaded event only seems to be firing when the user actually clicks t...

How to fire an event when click occurs in iframe?

I want to catch clicks that occur anywhere in an iframe. I can not directly access the iframe because it contains content from another domain. So how would I do that with jQuery? Somehow calculate if the click occurred in the area of the iframe? The iframe should stay totally accessible as it contains links etc. ...

Flex Combobox preChange event

Hi, I have a project in which i need to pop up an alert to the user before a combobox value is changed. This feature is to allow the user to stay in current state if modifications were not saved. Meaning that the user will be able to cancel the change. I have sub classed ComboBox and tried to hook on ITEM_CLICK of ComboBox.dropdown but ...

Easiest way to signal an event to several processes in .NET

I was hoping there was an easy way to signal an event to several processes that did not involve me writing a custom socket listener. I'm trying to inform several applications that will need to update their cached configuration settings that a config change has occurred. I wanted to implement a "host wide" singleton, but have failed to fi...

How do I know when I've stopped scrolling a TScrollBar?

I've used some programs with scroll bars that update the linked content while you're still dragging the "thumb", and others that don't until you release the mouse. This implies that there are different types of Windows messages involved here. But all I can find from TScrollBar is an OnScroll event which fires continually while you're d...

Code Length in IDE ( w/o modeling support ) versus Code Efficiecy in Compilation in Delphi

So - highly hypothetical question and more like discussion about your coding style and practice you use daily. I will take as example: CodeGear RAD Studio 2009 (sorry to all D7 fans, but Unicode rulles ). I have capability to expand/collapse functions/procedures/records and few other complex data structures, but what if code is lengthy...

Selenium RC and input control events

We have web ui project in MVC and for automated testing we are using Selenium, its a brilliant tool. But I am facing some problem in raising events with Selenium. Scenario: I have a textbox which expects +ve value and bubbles up an error (javascript) when entered any -ve value and we hit tab from that textbox or clicked outside anywher...

BinaryFormatter picking up events

I have a storage class that has events on adding items to it. My form class handles the event. When I try to serialize it, formatter complains about form class not marked as serializable. Of course, I don't want to serialize it, however, i can't mark event as [NonSerialize] since it is not field... What to do? EDIT: Aditional info: ...

How do I run an object's method onEvent in javascript?

Hello, I just started using javascript and I'm missing something important in my knowledge. I was hoping you could help me fill in the gap. So the script I'm trying to run is suppose to count the characters in a text field, and update a paragraph to tell the user how many characters they have typed. I have an object called charCounter...

EventListener to watch for number of itens in DataGrid

Hello everybody. I'm new to Flex, but I've been exploring it with Flex Builder, and its pretty good. Indeed the best for fast building of Web based Apps... I'm trying to do something with eventListeners, but i still do a lot of messy code, so wanted help of those who already know flex. I'm have a DataGrid, and its itens are added b...

How do I identify which control generated the Click event?

In the following code, how do I identify which control raised the Click event? void x_Click(object sender, EventArgs e) { //How do I identify the sender? } private void fill() { for(blah) { Button x = new Button(); x.Click += new EventHandler(x_Click); this...

Javascript performance ? - Put events in html tag, or bind them?

I'm wondering which is better for performance... I have a "web app" sort of thing. It has a lot of javascript. When a button is clicked, a hidden div becomes visible. This new div has 5 buttons. Which is better for performance: 1.) put the button click events in the html tag of each button like onClick="alert('hey');" 2.) Attach events ...

onload function with div

Is it valid to use onload function with div element. ...

ASP.NET GridView Button Event

Hi, I'm trying to trigger a button event in a gridview. I created a gridview with the following code: <asp:GridView id="ItemsGrid2" BorderColor="black" CellPadding="3" BorderWidth="1" HeaderStyle-BackColor="DarkSlateGray" HeaderStyle-ForeColor="White" AutoGenerateColumns="false" AllowSorting="true" OnSortCom...

Flash + Chrome = keyboard blocking?

In one of my flash projects i meet an strange bug. Flash Player in Google Chrome blocking some system keyboard shortcuts. For example such as Alt+Shift & Ctrl+Shift it`s an standart language layout switch bindings. For my project it`s a very big problem, because I need multilingual user input. Someone can help me with this problem? ...

Is there any event between keypress and keyup in javascript?

I have a situation where I need to intercept every key thats being pressed in to a contentEditable div. But when the keypress event happens, if I do, document.getElementById("divEditor").innerHTML I cannot get the full text (does not have the last character pressed) Also, keyup event doesn't fire for continuous keypresses. What can I...

Is it necessary have someone registered to an event before you can raise it?

It sounds crazy but I created an event in the class and tried to raise it without having anyone registering to it. However it would give an exception. Is it necessary to have someone register to it before raising the exception? If so then what are the work arounds? ...

Jquery event bind/unbind and lib hooks

Greetings, I am using facebox popup jquery plugin. In their JS they have the following event /* * Bindings */ $(document).bind('close.facebox', function() { $(document).unbind('keydown.facebox') $('#facebox').fadeOut(function() { $('#facebox .content').removeClass().addClass('content') hideOverlay() $(...