110,561
社区成员
发帖
与我相关
我的任务
分享
//指定图片地址
Image imageCinema1 = Image.FromFile("C:\\Users\\1.gif");
PictureBox pictureBoxCinema1 = new PictureBox();
pictureBoxCinema1.Image = imageCinema1;
//设置图片的一些属性
pictureBoxCinema1.Location = new Point(x, y);
Label btn = new Label();
btn.Dock = DockStyle.Fill;
btn.Text = "测试测试测试测试测试";
btn.Parent = pictureBoxCinema1;
btn.BackColor = Color.Transparent;