I wonder if I can remove all added event handlers in all the child forms from the one base form in the Closing method. (VB.NET; .NET 2.0)
Background:
In a project I analyze a memory problem. I verified with the memory profile (see related question) and find out that some forms are not collected by the GC, probably because of the EventH...
I running into an infinite loop problem.
I have two numeric up/down controls (Height and Width input parameters). When the user changes the value of one of the controls, I need to scale the other to keep a height to width ratio constant.
Is there a way to set the value of a control without invoking a ValueChanged Event. I only want t...
I am trying to handle the same onSelect event on a jquery datePicker object twice. From what i understand the event can be handled multiple times, but when i try this only one of the event handlers gets fired. It seems to fire the second handler, but not the first. How can i handle the same onSelect event twice without overriding the fir...
Hello all.
I am using google maps + javascript + php in my application.
I want to know two things:
In google maps,
does moveend event ALWAYS gets fired
AFTER zoomend/dragend (whichever of
two) event occurs.
When I click zoom icon on google map
or scroll the mouse wheel to zoom,
the zoomend event gets fired more
than once. If I zoom in...
Like the title says:
My web service method call looks like
proxy.BeginGetWhatever(int param)
{
}
Lets assume the handler registered with this call is
private void GetWhateverCompleted(object sender, GetWhateverEventArgs e)
{
//HERE
}
How do I get access to the parameter param in the handler? (e.Result will return whatever the ...
This is a super simple event. Why it is not working is making me go crazy.
This is in my AsciiArt class:
dispatchEvent(new ArtEvent());
That fires this very simple event class:
package
{
import flash.events.*;
public class ArtEvent extends Event
{
public static const DONE_NOW = "done";
public function ...
I have a question regarding as3 listeners, and instances of a class.
The main question: is there a way to dispatch an event from the button instance in such a way that the other button instances can listen (without the need for a listener in the document class)
Lets say i have a document class and a button class. The document will have...
I have a form with 2 text fields which get populated using auto complete. Now when I enter some value in form 1 (through autocomplete ), I want the second form field to fetch the auto complete values using text entered in field1 as one of the parameters. Lets say ,
text 1 < contains car brand names which are auto populated >
text 2 < ...
Here is specifically what I am seeking to accomplish:
Using .Net 3.5, I have a Windows Service, within which I have a WCF Service running. I have a client, which requests a file from the WCF Service (Net.Tcp binding), which is then copied by the WCF service to a specified location, where it can then be edited/modified by the client. The...
I'm building an application using EXT for GWT (i.e. GXT). In GXT, every component that can be added to a page has an associated Render event that can be captured and handled. Due to some limitations I need to step down to pure GWT for a small portion of my application. Specifically, I want to modify the RichTextArea widget by adding s...
I'm not sure what I'm doing wrong here:
index.html
<?xml version="1.0" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "XHTML1-s.dtd" >
<html xmlns="http://www.w3.org/TR/1999/REC-html-in-xml" xml:lang="en" lang="en" >
<head>
<script type="text/javascript" src="scripts/eventInit.js"></script>
</head>
<body>
<p id="javas...
http://msdn.microsoft.com/en-us/library/ee2k0a7d.aspx
Event handling is also supported for
native C++ classes (C++ classes that
do not implement COM objects),
however, that support is deprecated
and will be removed in a future
release.
Anyone knows why? Couldn't find any explanation for this statement.
...
is it possible to determining what object calls a function based on an event listener? for example, i have 2 buttons on stage that call the same function when they are clicked. i'd like the function to determine which button was the sender.
firstButton.addEventListener(MouseEvent.CLICK, myFunction);
secondButton.addEventListener(Mouse...
I am using this code to validate the text box which is an amount column in a dynamic grid.
<asp:TemplateField HeaderText="Amount">
<ItemTemplate>
<asp:TextBox ID="txtAmount" Text='<%# Bind("SD_AMOUNT") %>' runat="server" MaxLength="16"
AutoPostBack="true" Style="text-align: right" OnTextChanged="txtAmount_TextCha...
How do I implicitly convert a delegate to other?
// old
public delegate OldClickEventHandler(object sender, OldClickEventArgs e);
class OldClickEventArgs
{
public int intEnumValue;
OldClickEventArgs(int enumValue){ this.intEnumValue = enumValue; }
}
// new
public delegate NewClickEventHandler(object sender, NewClickEventArgs e);
clas...
I have a user control with a button named upload in it. The button click event looks like this:
protected void btnUpload_Click(object sender, EventArgs e)
{
// Upload the files to the server
}
On the page where the user control is present, after the user clicks on the upload button I want to perform some operation right after the b...
I am writing a Class Library that will be used by other applications. I am writing it in C#.NET. I am having a problem with triggering events across classes. Here is what I need to do...
public class ClassLibrary
{
public event EventHandler DeviceAttached;
public ClassLibrary()
{
// do some stuff
OtherClass....
I've a Flex application which loads a Flash swf via SWF loader; the Flash swf is in AS3.
the flash swf has code to dispatchEvent a Text Event
Flash Code:
var re:TextEvent = new TextEvent(TextEvent.TEXT_INPUT,true,true);
Flex Code:
<mx:SWFLoader source="menu.swf" id="mnu" complete="menuLoaded(event)" />
private var mySwfMve...
In my Silverlight UI, I have a button that when clicked pops up a control with some filtering parameters. I would like this control to hide itself when you click outside of it. In other words, it should function in a manner similar to a combo box, but it's not a combo box (you don't select an item in it). Here's how I'm trying to capt...
Hi All
I'm sure you're all aware of the fact that the Label Control has no KeyDown handler (and why would it?)... Anyway, I'm in need of a KeyDown handler for the Label Control and would appreciate any pointers/suggestions to get me started.
I've searched around but haven't found any info on creating my own Event Handlers for the Label...