Results 1 to 10 of 10

Thread: Converting Incompatible Icon

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jul 2005
    Posts
    400

    Converting Incompatible Icon

    I have an icon that I've converted from an image to a .ico file. When I try to add it to a form it says "Invalid Picture". How can I make the icon valid? I've tried a few programs to do it but none of them work right. I can almost get IrfanView to make the icon compatible with VB but it doesn't quite get the transparent color right. I can still see some black around the border of the icon. Thanks

  2. #2
    Frenzied Member
    Join Date
    Aug 2006
    Location
    India, Punjab, Bhatinda
    Posts
    1,689

    Re: Converting Incompatible Icon

    I believe You used Image to Icon converter. If this be the case use the non-XP type of icons True colors etc. You will find a wizard to do this....

  3. #3
    Addicted Member
    Join Date
    Aug 2007
    Posts
    227

    Re: Converting Incompatible Icon

    Please use program to convert to 256 color icon etc "Microangelo".

  4. #4

    Thread Starter
    Hyperactive Member
    Join Date
    Jul 2005
    Posts
    400

    Re: Converting Incompatible Icon

    Oh, it has to be 256 colors? Hmm, what program is best to manually change the icon of a VB executable to a "True Color" icon?

  5. #5
    Frenzied Member
    Join Date
    Aug 2006
    Location
    India, Punjab, Bhatinda
    Posts
    1,689

    Re: Converting Incompatible Icon

    change the icon of a VB executable
    are you by any chance talking about your setup file's icon?

  6. #6

    Thread Starter
    Hyperactive Member
    Join Date
    Jul 2005
    Posts
    400

    Re: Converting Incompatible Icon

    No, I'm trying to add a "True Color" icon to my compiled VB .exe after it's been compiled since, I guess, VB doesn't support anything higher than 256 colors.

  7. #7
    Frenzied Member
    Join Date
    Nov 2005
    Posts
    1,834

    Re: Converting Incompatible Icon

    VB does accept them, as long as the icon also contains 256 color images.

    ::Edit::


    Not accepted by VB.
    Code:
    64x64 XP color
    48x48 XP color
    32x32 XP color
    16x16 XP color
    Accepted by VB. The main icon of your application will be a XP color icon.
    Code:
    64x64 XP color
    64x64 256 colors
    48x48 XP color
    48x48 256 colors
    32x32 XP color
    32x32 256 colors
    16x16 XP color
    16x16 256 colors
    Last edited by Chris001; Sep 18th, 2007 at 08:37 AM.

  8. #8

    Thread Starter
    Hyperactive Member
    Join Date
    Jul 2005
    Posts
    400

    Re: Converting Incompatible Icon

    Huh? Why are all of the "Accepted" items also in the "Not Accepted" list?

  9. #9
    Frenzied Member
    Join Date
    Nov 2005
    Posts
    1,834

    Re: Converting Incompatible Icon

    Because a proper icon contains multiple images in different sizes. VB can't handle it when the icon only has XP color images. By adding 256 color versions, VB will use a 256 color image when necessary: for example in the titlebar of the application.

  10. #10

    Thread Starter
    Hyperactive Member
    Join Date
    Jul 2005
    Posts
    400

    Re: Converting Incompatible Icon

    What program can I use to make it compatible? I tried Microangelo but I'm not sure sure how to get it to convert the icon to a VB compatible icon.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width