Hi All,
My scenario:
Windows Forms Application with a base master (mdi) form.
Public Interface IDoSomething that has an event:
Event AddFilter()
Modal popup window implements the interface and decalres event:
Public Class frmPopup
Implements IDoSomething
Public Event AddFilter() Implements IDoSomething.AddFilter
Popup also conta...
What happens in jQuery when you remove() an element and append() it elsewhere?
It appears that the events are unhooked - as if you were just inserting fresh html (which I guess is what happening). But its also possible my code has a bug in it - so I just wanted to verify this behavior before I continue.
If this is the case - are there...
I've created an event receiver and have added to the GAC.
How do I bound an event receiver to a specific custom content type?
I need to do this from an XML file:
So far I have:
Feature.xml that points to an Elements.xml file but am not sure about the Elements.xml file.
How do you reference a specific content type? (I have the guid f...
Hi, I am writing a small Java app (on Windows, hence the _on_vista appended to my name).
I got 3 buttons, all of which will react to a click event, but do different things.
Is the following code the accepted way or is there a cleaner way I do not know about?
On one half, it works, on the other half, something doesn't seem right...
Tha...
I'm creating buttons dynamically on an Excel userform with the following code:
With Me.CurrentFrame.Controls.Add("Forms.CommandButton.1")
.Caption = "XYZ"
.name = "AButton"
.Font.Bold = True
.ForeColor = &HFF&
... blah blah blah
End With
I'd like to assign a function to run when these buttons are clicked, but I can...
Following from my question on binding in general, I'd like to ask for help on the following scenario.
I have a collection of objects (imageFileData) displayed via a DataTemplate in a ListBox control. The control is bound to an ObservableCollection. Both the collection and the template are defined within my application xaml and xaml.cs...
I need to debug a web application that uses jQuery to do some fairly complex and messy DOM manipulation. At one point, some of the events that were bound to particular elements, are not fired and simply stop working.
If I had a capability to edit the application source, I would drill down and add a bunch of Firebug console.log() stateme...
I'm having a problem setting up an event on a form. Here's the setup:
I was given a page with two controls, two different versions of a form for the end-user to fill out- standard and advanced. The two forms have different code and javascript, so the original dev put them in separate web user controls. Aside from the controls is a LinkB...
Hi,
I've got a UserControl called myListItem that goes into ListBox'es. On mouse-over, it displays a pop-up window, and in that pop-up there's a scroll-view that the user might want to use to scroll the text in the view. I've made an event-handler that displays the pop-up when the mouse enters, but I'm struggeling a bit with when the mou...
Hi there.
I have a DGV in VB.Net 2008 connected to an Access DB table. The DGV is not Read Only, but is full of read-only columns except for one, which contains a combo box. The combo box allows the user to select an outcome for that particular row, and then the program copies in a pre calculated value into the "Profit" column depending...
Suppose I have 4 squares colored blue, white, red and green (myComponent) associated with the mouse press event. At one point, the mouse is pressed over one of them - say, the yellow one - and the event is activated.
Now, the control flux is inside the event handling function. How do I get the MyComponent - the yellow square - that caus...
Whats the correct format for declaring an event handler in an interface if you are using a custom subclass of EventHandler rather than the base EventHandler class.
I create the EventHandler subclass MyEventHandler for example in the delegate declaration, but you can't declare a delegate in an interface...
When I ask Visual Studio to Ex...
Hey all. I have a ASP.NET page that lists a bunch of user accounts.
If I click on a user, an event called LinkChosen is fired, which opens the account view page for that user.
I can also search for users, which narrows down the list. This event is called btnSearch_click
If I click on a user, LinkChosen() is called, and I'm taken to a ...
In SharePoint,
using an event receiver, how do we find out when a user has approved a document in a document library?
I would think it should be captured in ItemAdded or ItemAdding event.
Any ideas?
Thanks.
...
For example, the following MXML script attaches a listener to a Button class:
<mx:Button id="STACK" label="OVERFLOW" click="doStuff()"/>
I have a custom action script class which fires an event when a value is updated and I wish to be able to listen for that event in an MXML class:
ActionScript Class:
public function set currentPage...
I have two trees:
fooTree - made up of elements,
barTree - constructed by
Both trees have MouseRightButtonDown event, but the e.Source type differs:
fooTree - System.Windows.Controls.TreeViewItem
barTree - System.Windows.Controls.TreeView
Why e.Source differs? Also, how can I get the clicked item for the barTree?
Markup:
...
Befor I ask this question, I have a favor to ask,
PLEASE don't down vote this question till it has some real answers.... PLEASE!
I have submitted this previously as the following question
http://stackoverflow.com/questions/579892/php-calendar-recurrence-logic
but because someone down voted it and said it was already answered, noone w...
I have been attempting to handle the KeyDown event of a UserControl (page) in my Silverlight application, but there seems to be some strange behaviour on the part of Silverlight user input functionality. The event is not getting raised under any circumstance. I have even tried attaching the event handler to each container control within ...
CancelEventArgs provides a Property called Cancel that different event handlers can set to tell the object that invoked the event whether it should continue execution cancel the action.
It seems that since events are multicast delegates, a simple raise of the event might invoke two delegates. The first one sets the Cancel property to tr...
Hi,
I am creating an eclipse plugin which should listen for and handle the event generated, when the user selects File > New > Project.
I am urgently in need of a solution for this. Please share with me the codes or ideas that you have as soon as possible.
...