This sample program show's how to tile a bitmap across a forms background. Any picture can be used - just remember that if you resize the form, you'll need to re-tile the bitmap again.
For ii = 0 To VerticalLimit
For jj = 0 To HorizantalLimit
PaintPicture Picture1, jj * Picture1.Width, ii * Picture1.Height, Picture1.Width, Picture1.Height
Next
Next
End Sub
Call this Sub in Form Load, and also on Form Resize. That way it will automatically load for you, and will resize itself as the dialog is resized.
Comments
More Dynamic Way
Posted by Legacy on 11/28/2001 12:00amOriginally posted by: Andrew Leonard
Reply