Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1369
Icon like dock manager
posted

Hi,

I am using ultraStatusBar6.3.1. I am using this status bar to unpin and pin the below section of windows split container. At the moment I am using the pin/unpin custom icon. I need the icon the same like dock-manager pin/unpin icon. Because on different operating system my custom icon remains same while dock-manager and other are changing according to windows theme.


Here the icon in circle needs to be same like dock-manger. Is there any way that I can extract the icon of dock-manager.

Parents
No Data
Reply
  • 44743
    posted

    You can get the embedded resource stream from the dock assembly with something like this:

    typeof(UltraDockManager).Assembly.GetManifestResourceStream("PinButton.ico");

    Then you can create an icon from the stream. You may also have to convert it to a Bitmap by calling ToBitmap on the icon.

     

Children