独立窗口,窗口背景颜色设置为和图片的背景颜色一致,实例是白色white。
添加图片控件,停靠fill,控件窗口背景颜色设置为和图片的背景颜色一致,实例是白色white。添加图片
窗口afterload
e.Form.BaseForm().TransparencyKey = Color.White ‘把窗口透明色设置为和背景色一致
'e.Form.BaseForm.Opacity = 0 ‘如果单独测试窗口,把这一句代码去掉’
e.Form.BaseForm.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None '消除窗口的边框
myform = e.Form.BaseForm
Dim dc As Foxtable.FormPanel = e.Form.Panel '窗口底层
AddHandler dc.MouseMove, AddressOf myform_MouseMove '进入控件事件
AddHandler dc.MouseDown, AddressOf myform_MouseDown '按下鼠标事件