C# 怎样使pictureBox上的控件随图片大小的变化而变化,即当我放大pictureBox的图片时,图片上的控件的大小,最好有源码。我是个C#的菜鸟,望大家多指点

解决方案 »

  1.   

     private void Form1_Load(object sender, EventArgs e)
            {
                Bitmap m=new Bitmap(@"F:\图片\1.png");
                pictureBox1.Size = m.Size;
                pictureBox1.Location = new Point(10, 10);
                pictureBox1.BackgroundImage = m;
            }
      

  2.   

    我想说的是pictureBox的图片上放有lable、button的时候,当图片变大的时候,lable、button的大小也跟着变化,而且我放的lable和button有很多