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 am changing one icon on my extension toggle toolbar in runtime using:

MyBase.UpdateBitmap(New Bitmap(Me.GetType(), bitmapResourceName))

This works fine but I get a border/highlight around my image. What can I do to prevent that?

I am using ArcGIS Desktop version 10.

share|improve this question
what are the dimensions of your bitmap? Also I'm not certain, but you might get a resource leak with your code ... I'd recommend instantiating all the bitmaps you need at startup and assign to member variables, instead of calling New Bitmap multiple times for the same bitmap. – Kirk Kuykendall Mar 15 '11 at 3:26
Are you using a partially transparent PNG for your icon? If so, this answer might be applicable:… – blah238 Jun 13 '12 at 22:33

Your Answer


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

Browse other questions tagged or ask your own question.