Results 1 to 9 of 9

Thread: invalid property value

  1. #1

    Thread Starter
    Lively Member
    Join Date
    May 2006
    Posts
    120

    invalid property value

    i want add a icon to the form title bar. But when i add the icon in form property, it came out an error "invalid property value"
    How to solve this problem?

  2. #2
    Learning .Net danasegarane's Avatar
    Join Date
    Aug 2004
    Location
    VBForums
    Posts
    5,853

    Re: invalid property value

    You have to use only *.ico Files.If you use other type of imagefiles you will get this Error.Make sure that you are using the *.ICO files

    Hope this helps
    Please mark you thread resolved using the Thread Tools as shown

  3. #3
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687

    Re: invalid property value

    How are you adding it? At run time or during design?

    -tg
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  4. #4

    Thread Starter
    Lively Member
    Join Date
    May 2006
    Posts
    120

    Re: invalid property value

    i add the ".ico" file during the design. The dimensions is 32 X 32. the size is 3.05KB. i have attach that icon.
    Attached Files Attached Files

  5. #5
    "Digital Revolution"
    Join Date
    Mar 2005
    Posts
    4,471

    Re: invalid property value

    Quote Originally Posted by junlo
    i add the ".ico" file during the design. The dimensions is 32 X 32. the size is 3.05KB. i have attach that icon.
    That's weird. It shows in Windows Explorer, but it won't load into Microangelo, which is the best Icon editor I know of.

    For it to be valid, make sure it also has a color profile of 256 colors. And not just XP/Alpha colors.

  6. #6
    Learning .Net danasegarane's Avatar
    Join Date
    Aug 2004
    Location
    VBForums
    Posts
    5,853

    Re: invalid property value

    It gives the same error for me.I found one problem is that the bit depth is less as compared to normal ico.You logo has a bit depth of 24 only.I think that may be the problem
    Please mark you thread resolved using the Thread Tools as shown

  7. #7

    Thread Starter
    Lively Member
    Join Date
    May 2006
    Posts
    120

    Re: invalid property value

    Quote Originally Posted by danasegarane
    It gives the same error for me.I found one problem is that the bit depth is less as compared to normal ico.You logo has a bit depth of 24 only.I think that may be the problem
    how to change the bit depth to be correct.

  8. #8
    Learning .Net danasegarane's Avatar
    Join Date
    Aug 2004
    Location
    VBForums
    Posts
    5,853

    Re: invalid property value

    Try using any icon editors as said by Digirev
    Please mark you thread resolved using the Thread Tools as shown

  9. #9

    Thread Starter
    Lively Member
    Join Date
    May 2006
    Posts
    120

    Re: invalid property value

    Quote Originally Posted by danasegarane
    Try using any icon editors as said by Digirev
    i don't have the icon editors softare.

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