Skip to content

Tag Archives: Windows Forms

System.InvalidOperationException – Cross-thread operation not valid

05-Feb-10

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 a program executes the operating system will assign a thread for the creation of UI [...]

Isolated Storage in C#

03-Feb-10

As I am working in a Windows Application, client asked about the Windows 7 and Windows Vista compatibility. As I was writing only managed code I was not worried about the compatibility and most of the time it was working fine. (I was using Windows Vista). Today evening one of my colleague was testing the [...]

WebCam in your applications using C#

16-Nov-09

In the current project I am working I got a chance to implement web cam image capture. There is two different ways to do this in C#.

Using WIA Sdk – It is library coming with Windows. And you can download this COM library from Microsoft site. But the problem of this approch is sometime the [...]

Post data using HttpWebRequest in C#

10-Nov-09

While working around twitter or any other REST API services, you may require to do a post request to web server. If you are using .net can do this either using WebClient class or using HttpWebRequest class. Both these classes exists in System.Net namespace. I am using HttpWebRequest here because HttpWebRequest gives you more fine [...]

Implementing Close button in Tab Pages

08-Nov-09

Long back, when I worked on Windows Application, my client asked me to change the UI, instead of using MDI, he want to use SDI. And for multiple Windows, suggested Tab Control, like the new Web Browsers. Fortunately he dropped the idea of SDI later and I continue to use MDI. But few days ago [...]