c# 创建的pictruebox 的 p.SizeMode = PictureBoxSizeMode.StretchImage 不改变图片的大小呢?
p1=newPictureBox();p1.Refresh();//p1.MouseClick+=newEventHandler(p1_Rigth_click);this...
p1 = new PictureBox();
p1.Refresh();
// p1.MouseClick += new EventHandler(p1_Rigth_click);
this.Controls.Add(p1);
p1.SizeMode = PictureBoxSizeMode.StretchImage;()
p1.BackgroundImage = Properties.Resources._11222;
p1.Refresh();
isDragging = true; //可以拖动
currentX = e.X;
currentY = e.Y;
p1.Click += new EventHandler(p1_click);
p1.SizeMode = PictureBoxSizeMode.StretchImage;() 没改变图片的大小? 展开
p1.Refresh();
// p1.MouseClick += new EventHandler(p1_Rigth_click);
this.Controls.Add(p1);
p1.SizeMode = PictureBoxSizeMode.StretchImage;()
p1.BackgroundImage = Properties.Resources._11222;
p1.Refresh();
isDragging = true; //可以拖动
currentX = e.X;
currentY = e.Y;
p1.Click += new EventHandler(p1_click);
p1.SizeMode = PictureBoxSizeMode.StretchImage;() 没改变图片的大小? 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询