有没有人知道这个界面是什么问题...我遍历了界面上的所有控件.然后将控件的TOBitmap重新绘制到总图上,后出现控件移位..,不在以前的位置上...有没有人知道这是什么原因?。。运行前界面...
运行后

解决方案 »

  1.   

    没人知道还是我说的不够清楚???
    就是我遍历控件后,然后把控件的tobitmap绘制到界面上后出现了,界面上控件的图片跟真实的控件不在一起,比如控件图片在上面,而控件跑到了下面..这是为什么呢?》
      

  2.   

    遍历控件并且贴到tobitmap
      public void timer1_time()
            {
                Bitmap bp;
                string path;
                path = @"D:\编程\软件开发素材\软件皮肤\5.png";
                //if (bp != null) bp.Dispose();
                bp = new Bitmap(path);
                foreach (Control Ct in this.Controls)
                {
                    try
                    {
                        Ct.Update();
                        Ct.DrawToBitmap(bp, Ct.Bounds);
                    }
                    catch
                    {
                    }
                }
                DYD.DYD dyd = new DYD.DYD();
                dyd.UserKey = "D";
                dyd.DrawBP(this, bp, 255);
            }