
意思是用Form1.Picture属性来设置背景 ,有没有不用image控件的方法
把图片放入image控猜冲件里,然后设置穗念歼image属性stretch为true
在窗体的form_resize
事件里
将image的高和宽设置为和高做窗体一样大
这是比较简单的方法
其实用bitblt
或者paintpicture
更好。
Private Sub Form_Load()
Me.Picture = LoadPicture(App.Path & "\毕闭" & "test.bmp")
End Sub
或者直接好数粗友镇设置 form1 的 picture 属性
楼主的意思是用Form1.Picture属性来设置背景
有啊,用paintpictur方法
Private Sub Form_Load()
Me.AutoRedraw = True
End Sub
Private Sub Form_Resize()
Me.PaintPicture Me.Picture, 0, 0, Me.Width, Me.Height
Me.Refresh
End Sub