Quantcast
Channel: Visual Studio Integrate forum
Viewing all articles
Browse latest Browse all 4410

Visual Studio StatusBar with custom icons

$
0
0

Hi all,

I am trying to put a custom icon in VS 2013, so far i was able to do it as long as i set the "Enable Rich Client Visual Experience" in the visual studio tools > General options.

If doing it everything works like expected, the problem is that by default is want to show my custom icon no mater if this is set or not.

What is the correct way of handling this.

This is the code:

 

        public void ShowIcons()
        {
            Bitmap b = new Bitmap(@"E:\source.bmp");
            IntPtr hdc = IntPtr.Zero;
            hdc = b.GetHbitmap();

            object hdcObject = (object)hdc;

            this.Bar.Animation(1, ref hdcObject);
        }

Thanks in advance

Jorge Costa


Viewing all articles
Browse latest Browse all 4410

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>