Treeview images look odd

This is a discussion on Treeview images look odd within the C# Programming forums, part of the General Programming Boards category; I'm using the built-in SystemIcons.Application icon in a tree view, but it looks a bit odd. I think the top ...

  1. #1
    mustang benny bennyandthejets's Avatar
    Join Date
    Jul 2002
    Posts
    1,401

    Treeview images look odd

    I'm using the built-in SystemIcons.Application icon in a tree view, but it looks a bit odd. I think the top and left parts have been cut off. A picture is attached. What can I do to fix this?
    Attached Images Attached Images  
    benforbes@optusnet.com.au
    Microsoft Visual Studio .NET 2003 Enterprise Architect
    Windows XP Pro

    Code Tags
    Programming FAQ
    Tutorials

  2. #2
    Banned nickname_changed's Avatar
    Join Date
    Feb 2003
    Location
    Australia
    Posts
    986
    I'm guessing you've put the icon in an ImageList? Check you've set the color depth and image size properties accordingly (32bit and 16x16). If that doesn't work it could be that this icon doesn't have a correct 16x16 32 bit icon, perhaps try another?

  3. #3
    mustang benny bennyandthejets's Avatar
    Join Date
    Jul 2002
    Posts
    1,401
    That seemed to do the trick, thanks.
    benforbes@optusnet.com.au
    Microsoft Visual Studio .NET 2003 Enterprise Architect
    Windows XP Pro

    Code Tags
    Programming FAQ
    Tutorials

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. TreeView and Database
    By x64 in forum C# Programming
    Replies: 2
    Last Post: 01-14-2007, 06:42 PM
  2. Images
    By gvector1 in forum C++ Programming
    Replies: 7
    Last Post: 02-25-2003, 08:59 AM
  3. images, icons, and cursors, OH MY!
    By DarkViper in forum Windows Programming
    Replies: 3
    Last Post: 01-07-2003, 01:26 PM
  4. STL, Queues And Images
    By simly01 in forum C++ Programming
    Replies: 3
    Last Post: 06-24-2002, 12:31 PM
  5. Homework help
    By Jigsaw in forum C++ Programming
    Replies: 2
    Last Post: 03-06-2002, 04:56 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21