Who we are

We are the developers of Plastic SCM, a full version control stack (not a Git variant). We work on the strongest branching and merging you can find, and a core that doesn't cringe with huge binaries and repos. We also develop the GUIs, mergetools and everything needed to give you the full version control stack.

If you want to give it a try, download it from here.

We also code SemanticMerge, and the gmaster Git client.

Howto: Enable Visual Styles in a VS2003 plugin or add-in

Tuesday, December 19, 2006 Daniel Peñalba 0 Comments

When you want to give XP visual style to a .NET application, you must call Application.EnableVisualStyles() method. But an additional call is needed, because a Framework bug. Some images in common controls under a ListView, are not shown. To avoid this bug you must use Application.DoEvents() after enable visual styles.

This is easy when you are developing a Windows standard application. But when you are developing a Visual Studio add-in (Visual Studio 2003) or a Office add-in, the perspective is different.

EnableVisualStyles is not compatible with Visual Studio 2003. It causes some crashes in the application. To enable XP visual styles, without affecting other applications, you can define an activation context, and the the XP themes affect only the appearance of your code.

http://support.microsoft.com/kb/830033

Here, there is more info about XP visual styles:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnwxp/html/xptheming.asp
Dani Peñalba
Yes! I was the first employee to join Codice!
I own the record in number of check-ins to the Plastic repository. And you can find me working on every single area of Plastic.
I'm also a professional guitar player and I like scuba diving, too. You can reach me at @danipen00.

0 comentarios: