VB窗体的背景图充满整个窗体,怎样设置?
2个回答
展开全部
'1、设置BorderStyle属性设置为“0-None”
'2、使用
网海1书生
上面说的代码
如果做封面的话,还需要在窗体上放一个Timer
'1、设置BorderStyle属性设置为“0-None”
'2、窗体上放一个Timer,默认名称为Timer1'
Private
Sub
Form_Click()
Form2.Show
End
Sub
Private
Sub
Form_Load()
Me.AutoRedraw
=
True
Timer1.Interval
=
3000
Timer1.Enabled
=
True
End
Sub
Private
Sub
Form_Paint()
Timer1.Enabled
=
False
End
Sub
Private
Sub
Form_Resize()
Me.PaintPicture
Me.Picture,
0,
0,
Me.ScaleWidth,
Me.ScaleHeight
End
Sub
Private
Sub
Timer1_Timer()
Timer1.Enabled
=
False
Unload
Me
Form2.Show
End
Sub
'2、使用
网海1书生
上面说的代码
如果做封面的话,还需要在窗体上放一个Timer
'1、设置BorderStyle属性设置为“0-None”
'2、窗体上放一个Timer,默认名称为Timer1'
Private
Sub
Form_Click()
Form2.Show
End
Sub
Private
Sub
Form_Load()
Me.AutoRedraw
=
True
Timer1.Interval
=
3000
Timer1.Enabled
=
True
End
Sub
Private
Sub
Form_Paint()
Timer1.Enabled
=
False
End
Sub
Private
Sub
Form_Resize()
Me.PaintPicture
Me.Picture,
0,
0,
Me.ScaleWidth,
Me.ScaleHeight
End
Sub
Private
Sub
Timer1_Timer()
Timer1.Enabled
=
False
Unload
Me
Form2.Show
End
Sub
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询