Monthly Archives: February 2010

Developing simple Windows 7 Gadget – Part 2

In my last post I have created a simple Windows 7 Gadget for testing Regular expressions. In this post we look into the Gadget Options dialog and Gadget API, which helps to display the options dialog and save the preferences … Continue reading

Posted in Javascript, Miscellaneous, Windows 7 | Tagged , , , , , | Leave a comment

Developing simple Windows 7 Gadget – Part 1

Gadgets are simple and lightweight applications, which can be developed using HTML, Javascript and CSS. Gadgets can also include Image files. In Windows Vista, we can create Gadgets by zipping the files, and rename the it with .Gadget extension. In … Continue reading

Posted in Javascript, Miscellaneous, Windows 7 | Tagged , , , , , | 1 Comment

Import Data from Excel using C# – Part 2

In my web application, we used to import data from MS Excel file. Few days before one of the client representative posted an issue that he can’t import data from XLSX (MS Excel 2007 File Format) files. Previously we were … Continue reading

Posted in .Net, .Net 3.0 / 3.5, ASP.Net, Windows Forms | Tagged , , , , | 17 Comments

System.InvalidOperationException – Cross-thread operation not valid

System.InvalidOperationException – Cross-thread operation not valid: Control ‘xxxxx’ accessed from a thread other than the thread it was created on. Normally we get this exception when we try to modify some control property from another thread. This is because when … Continue reading

Posted in .Net, .Net 3.0 / 3.5, Windows Forms, WPF | Tagged , , | 3 Comments

Encrypting and Decrypting Configuration Sections

Recently I got chance to work with security audit team for my web application, and one suggestion I got from them is to encrypt connection strings section in web.config. I thought it involves lot of coding changes, and I was … Continue reading

Posted in .Net, .Net 3.0 / 3.5, ASP.Net | Tagged , , | Leave a comment