1 Reply Latest reply on Nov 21, 2013 5:28 AM by Mohammed Elkalakhi

    Display icon in the title of PropertyManager page

    Mohammed Elkalakhi

      Hello,

       

      How can I Display an icon in the title of PropertyManager page ?

       

      title icon pmp.png

       

      I tried SetTitleBitmap2 Method (IPropertyManagerPage2) but it does not work for me.

       

      There is also

       

      Function SetTitleBitmapx64( _

         ByVal ModuleHandle As Long, _

         ByVal Identifier As Integer _

      ) As Boolean

       

      but I don't know how to use it ?

       

      Thank you in advance

        • Re: Display icon in the title of PropertyManager page
          Mohammed Elkalakhi

          Hello,

           

          SetTitleBitmap2 is the correct method to use to display an icon in the title bar of the Property Manager page. That method takes the full path of the icon file as a parameter. So for example if my icon file was located in:

           

          C:\Users\me\Documents\Visual Studio 2010\Projects\CustomPMP\CustomPMP\Bitmap1.bmp

           

          then I would call SetTitleBitmap2 this way:

           

          ppage.SetTitleBitmap2("C:\Users\me\Documents\Visual Studio 2010\Projects\CustomPMP\CustomPMP\Bitmap1.bmp")

           

          where ppage is the property manager page. I would declare it as:

           

          Dim ppage As PropertyManagerPage2

           

          My problem is that I had not the proper icon size, my icon was 24x24, I resize it to 16x16 and now it works.