events

Detecting when a Pocket PC is docked in a cradle in Windows Mobile 2003

Is is possible to detect when a Pocket Pc device is docked in it's cradle in Windows Mobile 2003 using C#. I want it to call a web-service when the device is put back on charge. ...

Pass data between event handlers in collection

I have a collection of event handlers of extended textboxes that handle the click event. On a click of any textbox in a column the event handler will unlock every textbox in that column by calling its form name and then sets a variable with an identifing variable in the active handler. Is there a way to set this identify variable inoth...

Can a VBA application Listen for events in a .NET class library through COM?

I have a class library that i made in C#.NET. The class has a public event, public event EventHandler DataReadyEvent; that is triggered periodically. I have a VBA application that creates an instance of this Class Library using CreateObject(...). I can access the methods and properties of the class library easially through COM but I can...

Android ScreenLock event?

Hi there, i'm an IT Student and the language i'm learning is C#, it's quite similar to Java so I gave Android programming a shot. But I have a question: Is there and event that's fired when the screen is (un)locked? And if possible, can someone show me a code snippet showing an action done when the screen is (un)locked? ...

AS3 The ways to dispatchEvent...

I was wondering the difference between these two dispatchEvent method... //1. eventObj:YouTubeSearchEvent = new YouTubeSearchEvent(YouTubeSearchEvent.CHANGE_VIDEO_READY); eventObj.videoId = theOneVideoId; dispatchEvent(event); //2 dispatchEvent(new YouTubeSearchEvent(YouTubeSearchEvent.CH...

I want to execute a function when new dom elements are added somewhere in the body

Hi, I would like to execute a function when new dom elements are added via ajax, somewhere in the body, by a 3er party JS. The function i want to execute is jqueryui's tooltip(), which changes title attribute into nice tooltips. The problem happens when a 3rd party JS adds new elements to many differents div's, and the new element's 't...

clearTimeout on Mouseover Event not clearing setTimeout from Mouseout Event

I have some code that adds mouseover events and mouseout events to all 'a' tags on a page. I'd like it so that the mouseout starts a 5 second timer after which time it calls a function. However, if a new mouseover event fires, it should cancel any existing timers. The code I'm using follows. The setTimeout() is working fine, but it se...

TextInput Component event is not working....

Hi guys... I am working on a AS3 only project in Flex....I tried to listen ENTER event when use clicks enter/return in my textinput box....but it seems not working well...I did try using TextEvent.TEXT_INPUT and it worked fine but not Component.ENTER...any help??? Thanks a lot!! import fl.events.ComponentEvent; searchInput=new Te...

Question about mouse event

Hi ... I want to know the name of the event that occurs when Mose moves and clicks continuously ... Like the event which draw Lines in Paint ... ...

Android - detect phone unlock event, not screen on

Is there a way to detect when a user unlocks the phone? I know about ACTION_SCREEN_ON and ACTION_SCREEN_OFF, but these seem to be fired when the screen switches on/off on pressing the power button, but not actually when the phone gets unlocked on pressing the Menu button... Edit: I am trying to detect the unlock/lock while an activity i...

C# multiple sources, different threads, one event handler

Hi guys, I need somebody with high skills in threading and event raising. I have an abstract class A and two concrete classes C1, C2 (e.g plugins). Since I need them to communicate between each other, like "plugin-application" "plugin-plugin" communication, I have a method ExecuteCommand in the abstract class which should accomplish...

how logging works using microsot enterprise library in asp?

I'm using microsoft enterprise libray for event logiing. There is different trace listners and formatters are added to web.config file.But i don't know how application decides specific tracelistnerto log events. Any link or help file which can provide information of basic working with event logging. ...

Asterisk.Net Dial Event does not raise in some times

Hi I use Asterisk.NET to implement a software that shows receive phone number in pop up form. and I use DialEvent to be aware from a coming Tel.my application always is run in a form that I Hide it. this event work good for me and I can understand when some call receive to me,then I show pop up form. NOW my problem is: sometimes I do not...

C# .NET events and multithreading

Hello, I am developing an application that is split into multiple .NET assemblies (one main executable and a set of class libraries). Currently, I am using a WPF GUI, but I need to maintain the flexibility to possibly switch to another GUI framework at a later time. Here is my problem: one of the class libraries performs some work on a...

Why does my button need to be clicked twice for the event handler to work the first time, but thereafter just once?

I want the visitor to be able to expand/collapse some sections, and am using: <input onclick="return toggleDiv('xx')" type="button" class="button" value="click here to expand/collapse"/> and in the I have the function: function toggleDiv(a){ var e=document.getElementById(a); if(!e)return true; if(e.styl...

Check which UIElement the mouse is entering in a MouseLeave event in Silverlight?

I have two UI elements next to each other that I want to behave as if they are one MouseLeave area. How can I check if the mouse is over a UI element being entered during a MouseLeave event? Currently, checking the mouse position using the following solution shows the mouse over the element being left during the MouseLeave event: http...

In C#, how can you easily change the name of an event handler?

In VS2008, if I double click on the event handler VS creates a default event handler with a default name, e.g. combobox1_SelectedIndexChanged. Say, for example, i now rename combobox1 to cbStatus. It still has the same event handler, so i now change that to cbStatus_SelectedIndexChanged. Is there a way, where VS can change the initial...

Order of execution of jquery event handlers in respect to (inline) javascript event handlers

Correct me if I am wrong, but seems to me jQuery event handling is completely separate from the javascript event handling. I know that the order of executing jQuery and javascript event handlers themselves is undefined, but can the assumption be made that all javascript handlers will execute before jQuery ones? In the example given in a...

C# triggering MouseEnter even even if mouse button is held down.

I have this problem that event called "MouseEnter" does not fire when mouse button is held down. How could i fix it? ...

Capturing a javascript event when an iframe is reloaded

I have a page in flex and on this webpage I have an iframe. I want to add code in javascript, that will detect when the page in the iframe changes (for example, if someone clicks on a link within the iframe) and I want to know what the URL of the new page in the iframe is. Is there any way to do this? ...