locked
Addin TabImage not showing RRS feed

  • Question

  • I am writting my first Windows Home Server tab extender but for some reason my tab image never shows up. I am puzzeled!

     

    I have tried different types of images png, bmp, been googling... tried 16,16, to 32,32... and of course various ways but it is not showing up - not even once Sad


    All i am getting is my Tab with a RED cross.


    public Bitmap TabImage

    {

    get

    {

    return new Bitmap(Microsoft.HomeServer.HomeServerConsoleTab.SampleWHSTab1.Properties.Resources.SampleWHSTab1, new Size(32, 32));

    }

    }

    Saturday, February 2, 2008 5:07 AM
    Moderator

All replies

  • You've verified that the resource exists?

     

    Code Snippet

    public Bitmap TabImage

    {

    get

    {

    return Properties.Resources.applications_32;

    }

    }

     

     

     

    That works fine for me, using a PNG. You could try dropping the new Size parameter.
    Saturday, February 2, 2008 7:00 AM
    Moderator
  • Thanks for your response.

     

    I formatted my WHS dev box inside of my virtual machine and now its working fine... - strange?

     

     

     

    Saturday, February 2, 2008 6:07 PM
    Moderator