What wrong in this icon file

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • muddasirmunir
    Contributor
    • Jan 2007
    • 284

    What wrong in this icon file

    I am trying to give the following Icon in my form in vb6.



    But , when I put this in my form I got error

    Code:
    "Invalid Picutre"
    What wrong in it? How to add this in my forms?
  • Guido Geurs
    Recognized Expert Contributor
    • Oct 2009
    • 767

    #2
    I have done some tests and found that VB icon only can hold ICO files with limited size and color bits.
    max colorbit = 8 (256 colors)
    max size = 128

    attached are your icons (without 256 size) and 8 bit.
    Attached Files

    Comment

    • vb5prgrmr
      Recognized Expert Contributor
      • Oct 2009
      • 305

      #3
      Several things are wrong with that Icon. One it uses too many colors and two it has sizes in it that vb cannot use. I believe and someone please correct me if I am wrong but VB only supports 256 colors and icons up to 48x48 pixels in size.



      Good Luck

      Comment

      • muddasirmunir
        Contributor
        • Jan 2007
        • 284

        #4
        Originally posted by ggeu
        I have done some tests and found that VB icon only can hold ICO files with limited size and color bits.
        max colorbit = 8 (256 colors)
        max size = 128

        attached are your icons (without 256 size) and 8 bit.
        Thanks this work.

        By the way what utility you used to change/modify it

        Comment

        Working...