detect

Detect windowhandle leaks in a c# application

I ran into this exception yesterday: Win32Exception: Fehler beim Erstellen des Fensterhandles might translate: Win32Exception: Error while creating the windowhandle I know how to solve this (even wrote a short blog post on the topic - in german) But I don't know where my application might be 'leaking' not disposed Controls, that sti...

Invoke a windows application from a windows service on system shutdown

Hi, I am developing a windows service in .Net 3.5 in C#. This service is used to periodically invoke a windows form. Now I would like to hook an event to the service so that when the user tries to shut down the system, then also the windows form will appear, preventing the shut down process. User can then only make the system shutdown t...

Detecting IE using jQuery

$(window).load(function () { if($.browser.msie && $.browser.version=="6.0") { // do stuff } }); Just realized that $.browser has been depreciated in 1.3. What is the new method for detecting IE, specially IE6. ...

New file in folder

Hello I want to detect when a new file is added to a existing folder and access it. How can I do this (C#)? Thanks ...

Detect multi accounts via cookies

I want to detect multi accounts in a browser game: If a user has more than one account, I want to know this. For various reasons, I don't want to detect the multi accounts by comparing IPs anymore. Users can share IPs and IPs are easy to change. So this is not a good method. Instead, I want to detect the accounts using cookies. Do you ...

How to detect click on javascript which is placed in DIV?

How to detect click on javascript which is fired from DIV? For example I have 3 adSense ads in 3 differnt DIVs on page, and I want to detect and trigger operation when ad is clicked. It is of course easy to detect click on DIV when it is empty, or with any other element but how to detect click on adSense ad (code)? Any idea? I will be ve...

iPhone + detect tap of disabled UIControl

Hello, I am developing In App purchase for one existing application. Scenario is something like I have a feature in application (which contain UITextField control), which is initially disabled and when user taps on that UITextField, it shows the message to unlock and buy that feature and once its done, UITextField will be enable. But t...

What is the easiest way of detecting whether assembly targets ordinary .Net, CF or Silverlight?

I found this question already on SO, but it only covers CF, so my question is: how do I detect whether an assembly has been built for ordinary .Net, CF or Silverlight? ...

Detect removable drive (e.g. USB flash drive) C/C++

How can I detect when a removable disk drive is (dis)connected to the system? How to get the mount path (for Linux) and the drive letter (for windows)? EDIT: Is there a way to detect the currently connected devices? ...

Flex: detecting user idle?

How can I tell when a user has been idle for say 5 minutes on my Flex app? When I say "idle" I mean the user has not interacted with the application at all. Thanks!! ...

Auto Detect Windows Mobile Device programmatically

Hi I am writing a windows application (written entirely in C++) which reads files from a storage card on a mobile phone running Windows Mobile. The tough part is, I don't know how to make my application detect the event that a user has connected the mobile phone to the USB of laptop. I did some reading on MSDN and have written a small c...

Actionscript 2: How to detect a key?

Hello Here's my current code: if (Key.isDown(Key.UP)) { //do stuff } What I want to do, is to detect if user presses a button. My code atm just detects if it's pressed down continueusly. Is there a way to detect when user only presses it down, doesn't hold it down? And please, no AS3 answers here. Martti Laine ...

How to find, with Java, if a certain font is installed correctly on a machine

I have a PC notebook running Win Vista, when I first bought it, certain Chinese fonts won't show up, I could only see rectangles, but I played with the control setting for a while, changed some properties, and now it shows Chinese fonts correctly, but I don't remember what I did. Now some of my programs displays both English and Chinese...

jQuery: detect pasting into a WYSIWYG editor

I'm using htmlarea for my little CMS, and I was wondering if it's possible to detect if something gets pasted into it with jQuery? ...

How to detect if device is headed towards a specific point direction

Hi, I have my current location from CLLocation, and I have another location- also an CLLocation. I would like to detect when my device is heading towards that other location. (I can calculate the distance in meters between this points- but can't workout the calculation of an accurate angle to compare with the device current headin...

How can I detect if an iPhone is rotating while being face up in a table?

Hello, Is there a way to detect if an iphone lying down in a table face up is rotating?. I do realize that this kind of movement is not reported by the accelerometer and neither is it reported to the - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation method. Is there a way to detect angle variat...

How to detect a Paste operation in a textbox?

I want to detect when the user pasted something into the textbox. I want to detect it whether the user used the mouse or keyboard. This is vb6 ...

Make outgoing call with built-in modem in C#

Hi, I have to call phone number and detect if the modem at the opposite side is hang-on. How can I do this in C# ? With SerialPort ? Thanks in advance BEst regards ...

Detect if images have loaded in a UIWebView?

Hey, I have a UIWebview that is loading an image. However I am trying to call a method when the image has completed loaded / rendered. I tried using UIWebViewDelgate and used, -(void)webViewDidFinishLoad:(UIWebView *)webView {} However this method is called before the image has loaded / rendered. How can I fix this. Any help would b...

How to feature-detect/test for specific jQuery (and Javascript) methods/functions used

good day everyone, hope yer all doin awesome am very new to javascript and jquery, and i (think) i have come up with a simple fade-in/out implementation on a site am workin on (check out http://www.s5ent.com/expandjs.html - if you have the time to check it for inefficiency or what that'd be real sweet). i use the following functions/met...