S
Snuyt
Hello,
I want to make a cards game. The only problem is now to add the cards in
the form. I want to add bitmaps (that part is working), but also delete
those bitmaps (1 at a time) by clicking on it.
Anyone knows which component or classes to use for this ?
Now I use an imageList for the bitmaps:
ImageList1.Images.Add(New Bitmap("pics/113.bmp"))
ImageList1.Images.Add(New Bitmap("pics/213.bmp"))
and I can draw them with:
Dim g As Graphics = CreateGraphics()
g.DrawImage(ImageList1.Images(1), 50, 50)
Thus I am looking for a way to delete the image from g, and a way to add
an event to g (clicking, by which i can get the coordinates of the
mouse, to see which card is underneath)
Thanks,
Snuyt
I want to make a cards game. The only problem is now to add the cards in
the form. I want to add bitmaps (that part is working), but also delete
those bitmaps (1 at a time) by clicking on it.
Anyone knows which component or classes to use for this ?
Now I use an imageList for the bitmaps:
ImageList1.Images.Add(New Bitmap("pics/113.bmp"))
ImageList1.Images.Add(New Bitmap("pics/213.bmp"))
and I can draw them with:
Dim g As Graphics = CreateGraphics()
g.DrawImage(ImageList1.Images(1), 50, 50)
Thus I am looking for a way to delete the image from g, and a way to add
an event to g (clicking, by which i can get the coordinates of the
mouse, to see which card is underneath)
Thanks,
Snuyt