Archive for the ‘windows forms’ Category

Detecting Application Idle State in Windows Forms

Thursday, February 7th, 2008

On a recent project, I had the need to detect whether or not the application is idle, and if so, for how long has the idle state persisted. Idle in my case is defined as no mouse movement or keyboard activity when any of the forms of the application are ...

WYSIWYG Editing of HTML in a Windows Forms Control

Monday, March 19th, 2007

In a WinForms project that I am working on right now, I have text stored in HTML format in the database. I need a way for novice users to be able to edit this text using a WYSIWYG interface. The most obvious choice for this in the Windows.Forms control library that ...

Global Application Error Handling in Windows Forms Applications

Friday, March 2nd, 2007

In my current project, I would like to log all Windows Forms errors, including those that are not caught explicitly. Lacking a built-in method (like Application_Error in the Global.asax file of an ASP.net application), I needed another way to easily catch all errors. After a bit of searching, I ...

Cannot Access a Disposed Object

Sunday, January 28th, 2007

In a Windows Forms application that I am working on, I had the following scenario: while the main form (Main.cs) is loading, I prompt the user to prove their credentials. If they are unable to do so, the form is closed (using this.close) and application execution is halted. The problem is, ...

In Search of an Embedded DB for a Windows Forms Application

Thursday, January 18th, 2007

So I am in the middle of building a pretty substantial Windows Forms application in .Net 2.0/C#, which will rely very heavily on database integration. Currently development is proceeding using Sql Server Express 2005 for the database server. It is a very robust product that supports anything that you can ...

Visual Studio 2005 Add-Ins and Tools That I Use

Tuesday, December 19th, 2006

I am right now in the middle (about 20% and 18K lines of code through) a pretty substantial Windows Forms project using Visual Studio 2005 (C#). Here are some of the add-ins that I have been using (ranked in order of essential to useful):