I want to listen to events in my windows forms .NET application for the following system wide events :
Log Off
Lock Windows
Hibernate Started
Sleep Started
System Resumed
Are these possible?
Thanks
...
I found an interesting questions regarding the events in action script: is the event buffered and ordered?
Ie) In a swfloader example, I setup a timer(1 sec) to run a function, in the function I setup a listener to event INIT of the loaded swf. It depends on the network condition that whether the timer handler or the INIT event will be ...
Hi,
I'm developing the app which has input fields and whenever user enters the controll, extra panel is being generated with the buttons.
The buttons have captions representing special symbols like degree, greek symbols.
When the button is pressed, corresponding special character should be added to the input fields TEdit existing text...
I have:
created a Composite,
initWidget-ed with an AbsolutePanel
added some Widgets to the Composite
in the Composite constructor attached a MouseOut handler
What I wanted to reach is detecting when the mouse is out of the Composite (or AbsolutePanel), but the MouseOut handler is fired whenever the mouse is out of any wideget in th...
We have a Flex application which goes fullscreen on startup (which is possible when it's a projector .exe). When a user presses ESC, the application exits fullscreen mode. Is there any way to prevent this? This because we want to use the ESC-key for other functionality.
Normally all keyboard input is disabled in fullscreen mode, but not...
I've a table with click events bind to it rows (tr).
Also,there're A elements with it owns click events assigned inside those rows.
Problem is when i click on A element,it also fires click event from TD.And Im dont want this behavior,i just want to fire A click's event.
Code:
//Event row TR
$("tr:not(:first)").click(function(){
...
Hi,
I have a method which is worked asynchronous by a BackgroundWorker. Within this method, some code loops infinitly with an interval of 1000 ms.
Within this code, depending on some value, an event is dispatched. As far as I have understood this, this event runs in the same thread as the code from which it has been raised.
But what...
I want to pass an event into a method. The code I have is as follows, but what do I put for the type "XXX" ?
internal class Retriever<TEventArgs> where TEventArgs : EventArgs
{
public Retriever( XXX event, EventHandler<TEventArgs> handler )
{
_event = event;
_handler = handler;
_event += handler;
}
...
I am receiving a COM Exception when trying to hook into an event on a COM Object. Here is the code I am trying to execute.
COMClass a = IComClass as ComClass;
a.SomeEvent += new SomeEvent_EventHandler(MethodNameHere);
Line two throws an exception of type COMException with the following information:
System.Runtime.InteropServices.C...
I want to hook my control's visual parent's events.
...
There is a property, it's named ImageFullPath1
public string ImageFullPath1 {get; set; }
I'm gonna fire an event whenever its value changed. I know I can beware of changing with INotifyPropertyChanged, but I wanna do it with events.
I don't know how I should do it.
Could you please guide me?
Thanks.
...
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 ...
This is a screenshot of the canvas.
I have a visual objet - circle table. It has circles around it - circle chairs. On those chairs a user guestIcon object by dragging it onto the chair. guestIcon has a label child visually near the chair itself. I explicitly assign a hitArea for each chair (and a guestIcon object has a hitArea too, whi...
Can someone help with a clear description on the cost of event listeners? My empirical evidence is in small docs vs large docs & event delegation improvements... but I was hoping for the concrete explanation of the process- and what about it is costly.
I assume the issue is just the sheer amount of functions attached to object propertie...
Hi,
I thought I understand the events in C#. That sometimes they are used if you do not want to call the method directly rather than left place for custom implementation. But when?
Programmer A writes class A, programmer B writes class B. Class A should raise an event that Class B register and reacts but Class A does not know anything a...
I have a select box using the dropdownchecklist jquery plug-in. I want to have a change event fire only after the select box loses focus.
The jquery .change event fires for select boxes immediately upon selecting an item in the list. In my case since multiple items can be selected I only want the change to fire after focus is lost a...
I am using a plugin system on an ASP.NET MVC application I am working on (loosely based on Rob Connery's MVC storefront project implementation).
In addition to executing plugin methods, I also want to allow classes to provide various event hooks that a plugin can subscribe to.
I am publishing my events like so:
#region Events
...
Hi I'm still quite new to VB.NET...
I have the following code for a form that has a button (Button1).
When I press this button it adds a combobox with some values (it adds a new one underneath each time the button is pushed).
How do I set up and event so that when a combobox is changed, a textbox will appear to the right of it?
I'm basic...
Hi,
I have a question related to events (no, its not duplicate from my previous one). I am interested whether I can send an event to class without specifying direct method name. I cannot explain in english well, please look at the code:
class a
{
public event eventhandler TEST;
b _b=new b();
TEST+=b_.MethodA(); //this is not useful...
I have a database with LINQ to SQL ORM. I am manipulating the database with the repository pattern. My IAssignmentRepository implements INotifyCollectionChanged with its single event, CollectionChanged. I just want to know if it was possible (and senseless) for me to create a delegate (AssignmentsChangedDelegate) and event (AssignmentsCh...