PDA

Click to See Complete Forum and Search --> : A card game problem


SkeletoN
Mar 9th, 2001, 05:16 AM
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??

PsychoMark
Mar 9th, 2001, 06:46 AM
Use Picturebox.Refresh after drawing to an Autoredraw picturebox...

That should fix the problem.

SkeletoN
Mar 9th, 2001, 11:20 AM
It`s worked

Thanks a lot!