Results 1 to 3 of 3

Thread: A card game problem

  1. #1

    Thread Starter
    New Member
    Join Date
    Jul 2000
    Location
    Turkey
    Posts
    5

    Post

    Hi guys,

    I have started to write card game in vb. But i am having problems with card faces. I am using cards32.dll api functions to load the card faces to pictureboxes, this is OK but when the app lost focus i cant see the card in picturebox again. So i set picturebox`s AutoRedraw property to true but in this time i cant see image.
    (I think this problem is caused by that i am not using the PictureBox.Picture property for loading card faces - i am using Picturebox.hDC - )
    (And i think this problem can be solved Gdi32.dll api functions)
    If anyone can help me??
    ___________________
    [email protected]
    ___________________

  2. #2
    Fanatic Member PsychoMark's Avatar
    Join Date
    Feb 2001
    Location
    Netherlands
    Posts
    540
    Use Picturebox.Refresh after drawing to an Autoredraw picturebox...

    That should fix the problem.

  3. #3

    Thread Starter
    New Member
    Join Date
    Jul 2000
    Location
    Turkey
    Posts
    5

    Thumbs up

    It`s worked

    Thanks a lot!
    ___________________
    [email protected]
    ___________________

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