Results 1 to 8 of 8

Thread: [RESOLVED] (Imagelist) Image Control in Windows XP

  1. #1

    Thread Starter
    Hyperactive Member hassa046's Avatar
    Join Date
    May 2001
    Location
    Venlo, The Netherlands
    Posts
    336

    [RESOLVED] (Imagelist) Image Control in Windows XP

    Hi guys,
    I've switched to windows xp pro sp2 last week and noticed a strange thing in my application.

    I use an imagelist with some icons in it. In windows 2000 there was no problem and everything (the size of the icons) seemd allright.
    In XP they have all the same small size (i guess 16 as the toolbar icons) which i cannot use.

    Is this a common problem when i develop in XP? Is there a solution for it?
    Last edited by hassa046; Jun 12th, 2007 at 03:18 AM.
    Better to regret things you did, than those you didn't
    International Intelligence

  2. #2

  3. #3

    Thread Starter
    Hyperactive Member hassa046's Avatar
    Join Date
    May 2001
    Location
    Venlo, The Netherlands
    Posts
    336

    Re: Imagelist in Windows XP

    ok; I did come closer tot the problem.
    It isn't the imagelist what giving the troubles.
    I use an Image Control to place the icon on it.
    First it gets resized to 16x16 en when i use a bigger size i get some strange effect.

    I attached a sample how it looks ( i guess 265 color mode)...
    Last edited by hassa046; Apr 26th, 2008 at 05:08 PM.
    Better to regret things you did, than those you didn't
    International Intelligence

  4. #4
    PowerPoster
    Join Date
    Apr 2005
    Location
    Debug.Print
    Posts
    3,885

    Re: (Imagelist) Image Control in Windows XP

    the problem would be the resolution for the ico itself. if i am not mistaken, the image controls are meant for bmp images so you might want to convert the ico to bmp and try that. most people use ico's for menu editor, statusbar and toolbar.

  5. #5

    Thread Starter
    Hyperactive Member hassa046's Avatar
    Join Date
    May 2001
    Location
    Venlo, The Netherlands
    Posts
    336

    Re: (Imagelist) Image Control in Windows XP

    True, but i used this option to create an outlook-bar menu.
    I build this from scratch and dynamicly.
    And the only option seemd to me to use the image control.

    The icons i use are multi-format icons, which never gave me problems untill i switched to XP.

    I've attached a sample icon i use (about.ico)
    Last edited by hassa046; Apr 26th, 2008 at 05:08 PM.
    Better to regret things you did, than those you didn't
    International Intelligence

  6. #6
    PowerPoster
    Join Date
    Apr 2005
    Location
    Debug.Print
    Posts
    3,885

    Re: (Imagelist) Image Control in Windows XP

    some people use a picturebox for doing what youre doing instead of the image control. have you tried that? or maybe found a better ico image for a better resolution?

  7. #7

    Thread Starter
    Hyperactive Member hassa046's Avatar
    Join Date
    May 2001
    Location
    Venlo, The Netherlands
    Posts
    336

    Re: (Imagelist) Image Control in Windows XP

    No, icon's are fine.
    The strange thing that i didn't experience this problem with windows 2000 as development platform. Only XP does this.
    Probably another reason not to upgrade to xp.

    I came across a lot of articles regarding display 32 bits icons in vb.
    Strange thing. In Win2K i didn't have to struggle with it.

    Ok thanxxx anyway.
    In a old post of you http://www.vbforums.com/showthread.p...ht=32+bit+icon , you also got stuck with this problem. How did you solvedit?

    Better to regret things you did, than those you didn't
    International Intelligence

  8. #8
    PowerPoster
    Join Date
    Apr 2005
    Location
    Debug.Print
    Posts
    3,885

    Re: (Imagelist) Image Control in Windows XP

    i didnt solve it. vb doesnt like 32-bit icons and it wont let you use them which totally sucks.

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