Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm using the the code form SymbolForm.vb in this sample: Change layer rendering using the SymbologyControl It's working great on my developer machine with Windows 7, 64bit. screenshoot from symbol chooser dialog, when working

But when I deploy the solution to an Win XP SP3 32bit the symbols in the SymbologyControl are missing (Text is shown and the symbol can be choosed) when I show the Form in my app. screenshoot from symbol chooser dialog, when not working

If I use the designer and add a new SymbologyControl to the MainForm, it shows the same *.serverStyle file correctly.

The problem is caused by the "Enable XP visual styles" in the visual studio project application setting: screenshoot of the setting

When I disable this setting the symbols are shown but not when this is enabled. This is in VB and the code effected by this setting is Application.EnableVisualStyles Does any one know a way round this problem? I don't want to have to disable this on my main project. Actually what's happening is that System.Windows.Forms.Application.EnableVisualStyles() gets runned in the WindowsFormsApplicationBase class.

Update: Been able to pin this issues down a bit further, this problem only occurs when I show the symbol dialog from events in .Net for example a Button_Click event, when using the events on ESRI components for example OnMouseDown on the TocControl the dialog shows up correctly with the symbols.

I didn't realize it but the problem problem also appears in windows 7, but that issue it's not as big, it only causes the symbols to gets shown in my case two instead of three columns. That's not ok but at least all symbols are shown.

screenshoot how it looks in win7

I still haven't found any working work-around, having to remove the call to EnableVisualStyles() is not an option.

share|improve this question
Perhaps a missing font? Do they have all of the ESRI fonts installed? – Michael Todd Nov 4 '10 at 19:35
@Michael-Todd In that case it shoud not work when I add the symbologyControl to the main form either. I tested with the same ServerStyle-file in the main form and the dialog. – MathiasWestin Nov 4 '10 at 19:49
up vote 3 down vote accepted

The solution is to add a Manifestfile that makes sure that the right version of common controls get used Enabling Visual Styles:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<description>Your application description here.</description>
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.