locked
Image on Form titlebar RRS feed

  • Question

  • Hi,

    How can I add an image on the Form titlebar?? Should I somehow use this.Text???

    Should I use the Icon??

    Please help.
    Wednesday, January 20, 2010 12:05 PM

Answers

  • Set the icon property of the form.

    Dewayne Dodd - Landshark Software "Please make sure to 'Mark As Answer' if this answer solves your question"
    • Marked as answer by Jing0 Thursday, January 28, 2010 2:58 AM
    Wednesday, January 20, 2010 1:56 PM
  • http://www.popdrops.com/bmptoico/
    Si la respuesta te ha sido util Marcala como Respuesta o Votala.
    Mi Blog: Jtorrecilla
    • Marked as answer by Jing0 Thursday, January 28, 2010 2:58 AM
    Wednesday, January 20, 2010 2:43 PM
  • There are several services on the internet that will convert an image file to icon format. Remember though that converting images to icons does not always render an image that is usable is an icon because of the details of the image.

    Dewayne Dodd - Landshark Software "Please make sure to 'Mark As Answer' if this answer solves your question"
    • Marked as answer by Scorgi Thursday, January 21, 2010 8:34 AM
    • Unmarked as answer by Scorgi Thursday, January 21, 2010 9:56 AM
    • Marked as answer by Jing0 Thursday, January 28, 2010 2:58 AM
    Wednesday, January 20, 2010 6:33 PM
  • Dear Scorgi,
               You can convert Bitmap to an icon.kindly refer this link below

    http://social.msdn.microsoft.com/Forums/en-US/netfxbcl/thread/4a10d440-707f-48d7-865b-1d8804faf649


    And for Image on the Form Tiltle bar
    in the initialize component just add the this code below


     

    this.Icon = (Icon)global.WindowsApplication1.Properties.Resources.IconFile;
    this.ShowIcon = true;

     here you want to add the icon file to the resources file.
    If any doubt please feel free to ask .

    Regards,
    ALGATES


    algates
    • Marked as answer by Scorgi Thursday, January 21, 2010 8:34 AM
    • Unmarked as answer by Scorgi Thursday, January 21, 2010 9:56 AM
    • Marked as answer by Jing0 Thursday, January 28, 2010 2:58 AM
    Thursday, January 21, 2010 4:16 AM
  • Dear Scorgi,
             First-- save the bitmap file to icon ..as given in by below link
        You can convert Bitmap to an icon.kindly refer this link below

    http://social.msdn.microsoft.com/Forums/en-US/netfxbcl/thread/4a10d440-707f-48d7-865b-1d8804faf649


    or you can use bitmap to icon convertor tools ,which you can find through google.


    Second in visual studio--- add the icon in resoures of your application
    third ---set the property of image -build in action as embedded resource

    forth----- use this code
    this.Icon = (Icon)global.WindowsApplication1.Properties.Resources.IconFile;
    this.ShowIcon = true
    ;

    Regards,
    ALGATES.

    algates
    • Marked as answer by Jing0 Thursday, January 28, 2010 2:58 AM
    Thursday, January 21, 2010 10:24 AM

All replies

  • Set the icon property of the form.

    Dewayne Dodd - Landshark Software "Please make sure to 'Mark As Answer' if this answer solves your question"
    • Marked as answer by Jing0 Thursday, January 28, 2010 2:58 AM
    Wednesday, January 20, 2010 1:56 PM
  • How do I convert a bitmap to an Icon.

    Wednesday, January 20, 2010 2:39 PM
  • http://www.popdrops.com/bmptoico/
    Si la respuesta te ha sido util Marcala como Respuesta o Votala.
    Mi Blog: Jtorrecilla
    • Marked as answer by Jing0 Thursday, January 28, 2010 2:58 AM
    Wednesday, January 20, 2010 2:43 PM
  • There are several services on the internet that will convert an image file to icon format. Remember though that converting images to icons does not always render an image that is usable is an icon because of the details of the image.

    Dewayne Dodd - Landshark Software "Please make sure to 'Mark As Answer' if this answer solves your question"
    • Marked as answer by Scorgi Thursday, January 21, 2010 8:34 AM
    • Unmarked as answer by Scorgi Thursday, January 21, 2010 9:56 AM
    • Marked as answer by Jing0 Thursday, January 28, 2010 2:58 AM
    Wednesday, January 20, 2010 6:33 PM
  • Dear Scorgi,
               You can convert Bitmap to an icon.kindly refer this link below

    http://social.msdn.microsoft.com/Forums/en-US/netfxbcl/thread/4a10d440-707f-48d7-865b-1d8804faf649


    And for Image on the Form Tiltle bar
    in the initialize component just add the this code below


     

    this.Icon = (Icon)global.WindowsApplication1.Properties.Resources.IconFile;
    this.ShowIcon = true;

     here you want to add the icon file to the resources file.
    If any doubt please feel free to ask .

    Regards,
    ALGATES


    algates
    • Marked as answer by Scorgi Thursday, January 21, 2010 8:34 AM
    • Unmarked as answer by Scorgi Thursday, January 21, 2010 9:56 AM
    • Marked as answer by Jing0 Thursday, January 28, 2010 2:58 AM
    Thursday, January 21, 2010 4:16 AM
  • Thank you very much for all your replies. This is a great forum!

    Thursday, January 21, 2010 8:35 AM
  • Unfortunately this is not working for me.

    Where do I specify which files to convert. 

    I thought I should do something like.

    Bitmap bmp = new Bitmap(16, 16)
    bmp = properties.resources.bmptest1??

    Thursday, January 21, 2010 9:55 AM
  • Dear Scorgi,
             First-- save the bitmap file to icon ..as given in by below link
        You can convert Bitmap to an icon.kindly refer this link below

    http://social.msdn.microsoft.com/Forums/en-US/netfxbcl/thread/4a10d440-707f-48d7-865b-1d8804faf649


    or you can use bitmap to icon convertor tools ,which you can find through google.


    Second in visual studio--- add the icon in resoures of your application
    third ---set the property of image -build in action as embedded resource

    forth----- use this code
    this.Icon = (Icon)global.WindowsApplication1.Properties.Resources.IconFile;
    this.ShowIcon = true
    ;

    Regards,
    ALGATES.

    algates
    • Marked as answer by Jing0 Thursday, January 28, 2010 2:58 AM
    Thursday, January 21, 2010 10:24 AM
  • Hi Scorgi,

     

    How is the problem now? Has it been resolved?

     

    Best regards,

    Ling Wang


    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
    Tuesday, January 26, 2010 8:21 AM