By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,156 Members | 1,069 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,156 IT Pros & Developers. It's quick & easy.

center backgroundimage

P: 2
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.

Sep 13 '07 #1
Share this Question
Share on Google+
2 Replies

P: 2

I am really stuck
Sep 18 '07 #2

Expert 100+
P: 1,295

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 = (form1.height/2) - (image1.height/2)
image1.left = (form1.width/2) - (image1.width/2)
Sep 18 '07 #3

Post your reply

Sign in to post your reply or Sign up for a free account.