Results 1 to 3 of 3

Thread: centre picture as MDIForm background

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Sep 2000
    Posts
    20
    i would like to know if there's a way of centering an image as my MDIForm background?

  2. #2
    Guest
    Images cannot go on an MDIForm. Only objects with an align property may go on them. But with a picture, you can. Place a picture on the MDIForm, make the picture box the same size as the MDIForm. You can use this code to keep the picture the same size (incase the MDIForm is resized).

    Code:
    Private Sub MDIForm_Resize()
    On Error Resume Next
    Picture1.Width = Me.Width - 400
    Picture1.Height = Me.Height - 400
    End Sub
    and put an image on top of that picture and load the picture you want to use. Place that picture in the center.

  3. #3
    Frenzied Member
    Join Date
    Jun 2000
    Location
    England, Buckingham
    Posts
    1,341
    The picturebox is the best way except that u may (this is probably completely wrong) use BitBlt to do it. using the Forms.hdc

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