Results 1 to 7 of 7

Thread: invalid picture

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Nov 2003
    Posts
    784

    Question invalid picture

    Hello All,

    I don't understandy why I met "Invalid picture" when I try to load .ico (as enclosed) into a form?

    please advise what's wrong with my .ico?

    Thanks & Regards
    Attached Files Attached Files

  2. #2
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974

    Re: invalid picture

    That icon is 32-bit colour (with alpha), and VB only supports icons with 24-bit colour or less.

  3. #3
    New Member
    Join Date
    Feb 2009
    Location
    Chennai,India
    Posts
    2

    Re: invalid picture

    Hi
    I`m using VB6.In one of my form i need to use to my company logo.
    its size 16x16,type Icon.
    But while using this icon im getting invalid picture error msg.

  4. #4
    Hyperactive Member su ki's Avatar
    Join Date
    Oct 2007
    Posts
    354

    Re: invalid picture

    hey
    notice what si_the_geek said
    ur icon should be of 24 bit in color depth atmost
    otherwise it will not load ; or else there is problem in format of icon

  5. #5
    VB-aholic & Lovin' It LaVolpe's Avatar
    Join Date
    Oct 2007
    Location
    Beside Waldo
    Posts
    19,541

    Re: invalid picture

    Quote Originally Posted by kanthasamyraja
    Hi
    I`m using VB6.In one of my form i need to use to my company logo.
    its size 16x16,type Icon.
    But while using this icon im getting invalid picture error msg.
    Your company could provide multiple icon formats, ask them to provide you a 4 bit (16 color), 8 bit (256 color) or 24 bit (true color) icon in a size of 16x16 and/or 32x32.
    Insomnia is just a byproduct of, "It can't be done"

    Classics Enthusiast? Here's my 1969 Mustang Mach I Fastback. Her sister '67 Coupe has been adopted

    Newbie? Novice? Bored? Spend a few minutes browsing the FAQ section of the forum.
    Read the HitchHiker's Guide to Getting Help on the Forums.
    Here is the list of TAGs you can use to format your posts
    Here are VB6 Help Files online


    {Alpha Image Control} {Memory Leak FAQ} {Unicode Open/Save Dialog} {Resource Image Viewer/Extractor}
    {VB and DPI Tutorial} {Manifest Creator} {UserControl Button Template} {stdPicture Render Usage}

  6. #6
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974

    Re: invalid picture

    I have recently written a couple of articles about this, which are in our Classic VB FAQs (in the FAQ forum, which is shown near the top of our home page), they are:
    The first gives a bit more detail about the cause of the problem, and the second explains what programs you can use to edit the icon to make VB recognise it.

  7. #7
    New Member
    Join Date
    Feb 2009
    Location
    Chennai,India
    Posts
    2

    Re: invalid picture

    Thanks for ur info

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