Monthly archives: October, 2013

What is stealing focus?

For the last couple of days, the focussed window on my dev box would occasionally lose focus.  It was really annoying.  It would always switch back, but I’d lose a couple letters here or there as I was typing. I eventually found the following code that helped me track down the culprit: Declare Auto Function …

Click-once application as Administrator

I created a ClickOnce application that had to modify the registry. You can’t do this unless you’re an administrator. I first tried to add an app.manifest file to elevate the application, but ClickOnce won’t anything but asInvoker. Then through some googling I found the following article: http://antscode.blogspot.ca/2011/02/running-clickonce-application-as.html In summation, when your application starts, it checks …