Re: Form Background picture
well, if you dont want the person to resize the form do this:
'be sure to disable the maximize feature
'set the timers interval to 1
If Form1.Height > 2775 Then
Form1.Height = 2775
End If
If Form1.Width > 5550 Then
Form1.Width = 5550
End If
Re: Form Background picture
I use this code to paint a picture across the form. I have one picture box on the form, but i'm not tiling that control, just the contents of it.
private Sub Form_Load()
With Picture1
.AutoSize = true
.BorderStyle = 0
.Visible = false
End With
End Sub
private Sub Form_Paint()
Dim i as Long, j as Long
With Picture1
for i = 0 to me.ScaleWidth step .Width
for j = 0 to me.ScaleHeight step .Height
me.PaintPicture .Picture, i, j
next j
next i
End With
End Sub
private Sub Form_Resize()
me.Refresh
End Sub
This works, and works fast too. It handles maximizing and resizing without a problem.
Hope this helps,
John
John Pirkey
MCSD
www.ShallowWaterSystems.com