Vishful thinking…

Weird painting issues in custom controls inside ArcMAP running on Windows Server 2003

Posted in ArcGIS, ESRI by viswaug on August 28, 2007

I am currently developing on a Windows XP machine for the project that I am currently working on. The deployment to the client is on a Citrix farm running Windows 2003 servers. All the user controls I had developed and hosted inside an IDockableWindow were working just fine on my machine. As soon as I deployed on the Windows Server 2003 machine, I started noticing weird behavior with the DataGridView control inside the dockable window like shown below.

 paintingissue.png

Repercussions for not testing on different platforms especially the one the application is going to be deployed on. This time I got lucky and was able to figure out the problem soon enough. So based on an educated guess, I switched the Windows theme from “Classic” to “Windows XP”.

xptheme.png

This change solved the problem and the DataGridView display as it should. Even though there could be a whole lot of reasons why this is happeneing, the solution is simple enough and could save somebody a whole lot of frustration.

paintingissuefixed.png

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: