如何在pictureBox中添加多张图片、、
就像~~~~扑克牌游戏~~~~
点一下按钮在pictureBox中显示一张图片(即一张牌)、、并且图片实现层叠效果、、
就像这样:
怎么做呢?
用Graphic.DrawImage() 函数么?具体点好么?最好上代码、、

解决方案 »

  1.   

    用多个PictureBox,并设置其位置就好了,因为你后续操作,应该还涉及单张图片的单击 拖放事件吧
      

  2.   

    接受picturebox的Paint事件picture1_Paint(sender,e)
    {
       e.Graphices.DrawImage(image1,x,y);   //  x,y控制绘图的位置   
      e.Graphices.DrawImage(image2,x,y);
      e.Graphices.DrawImage(image3,x,y);
      e.Graphices.DrawImage(image4,x,y);  //image1\2\3\4  分别为纸牌图片
    }以上可以动态改变Image参数   实现蜘蛛纸牌中效果
      

  3.   

    类似可以做出 类似Web上的走马灯效果   在同一个picturebox上不停的改变几张图片的位置