center backgroundimage

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mjadewit
    New Member
    • Sep 2007
    • 2

    center backgroundimage

    In my VB(2005) app. I want a CENTERED background image. This is not very hard to do. But when I center an image that is bigger then my browser, VB anchor the picture to the left top, so the image isn't centered anymore. Does anyone knows how to deal with this problem??

    Thank you in advance.

    mjadewit
  • mjadewit
    New Member
    • Sep 2007
    • 2

    #2
    Anybody...PLeas e???

    I am really stuck

    Comment

    • kadghar
      Recognized Expert Top Contributor
      • Apr 2007
      • 1302

      #3
      Originally posted by mjadewit
      Anybody...PLeas e???

      I am really stuck
      I've never worked with bg image problems, but you can always use an image control and send it to the back., then just make sure that

      image1.top = (form1.height/2) - (image1.height/2)
      image1.left = (form1.width/2) - (image1.width/2)

      Comment

      Working...