CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Aug 2005
    Posts
    1

    imagelist to picturebox: simple task, strange error

    Hello. I am making a card game and i have the whole deck in an imagelist, added through the designer.

    First of all, when i pass the images to the picturebox, the size of the images is reduced, even after i manually change the size in the imagelist constructor, and second, it shows many cards at the same time, even though they are all separated in the imagelist. I dont understand why this happens, any hints?

  2. #2
    Join Date
    Jul 2005
    Location
    Sydney, Australia
    Posts
    1,080

    Re: imagelist to picturebox: simple task, strange error

    Code? What size are your images and what size is the PictureBox? What is the value of the SizeMode property of the PictureBox?

  3. #3
    Join Date
    Feb 2005
    Location
    Israel
    Posts
    1,475

    Re: imagelist to picturebox: simple task, strange error

    As for your first problem:
    Try
    PictureBox.SizeMode = SizeMode.StretchImage

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

Featured