Results 1 to 3 of 3

Thread: NEED HELP NOW

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jul 2000
    Location
    Ca
    Posts
    106

    Question

    I want my form's background to contain a pic. The pic i have is too small for the form so i want it to be tiled like some window's background. How do i do this?

  2. #2
    Lively Member
    Join Date
    Mar 2000
    Posts
    81

    Cool

    You can use an API, but you don't need to - just go here:

    http://www.vbsquare.com/tips/tip388.html

    Hope this helps

  3. #3
    Guest
    Try this:
    Code:
    Private Sub Form_Load()
        Form1.ScaleMode = 3
        Form1.AutoRedraw = True
        Picture1.ScaleMode = 3
        Picture1.Visible = False
    End Sub
    
    Private Sub Form_Resize()
    
        ' Tile bitmap
        For y = 0 To Form1.ScaleHeight Step Picture1.ScaleHeight
           For x = 0 To Form1.ScaleWidth Step Picture1.ScaleWidth
               Form1.PaintPicture Picture1.Picture, x, y
           Next x
        Next y
        
    End Sub

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width