以文本方式查看主题

-  Foxtable(狐表)  (http://foxtable.com/bbs/index.asp)
--  专家坐堂  (http://foxtable.com/bbs/list.asp?boardid=2)
----  [求助]pnl 添加图片  (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=108264)

--  作者:blsu33
--  发布时间:2017/10/19 10:28:00
--  [求助]pnl 添加图片

老师,

   PNL 貌似没有属性添加图片,所以通过PictureBox 还是什么添加呢?


--  作者:blsu33
--  发布时间:2017/10/19 10:37:00
--  

用PictureBox 添加PANL 中  怎么能将PictureBox 尺寸大些 ?


[此贴子已经被作者于2017/10/19 10:43:55编辑过]

--  作者:有点甜
--  发布时间:2017/10/19 11:34:00
--  

panel可以设置背景图片,如

 

Dim p As WinForm.Panel = e.Form.Controls("panel1")
p.BaseControl.BackgroundImage = GetImage("d:\\test.jpg")
p.BaseControl.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch