Wrox Programmer Forums
|
BOOK: Visual Basic 2010 Programmer's Reference
This is the forum to discuss the Wrox book Visual Basic 2010 Programmer's Reference by Rod Stephens; ISBN: 9780470499832
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Visual Basic 2010 Programmer's Reference section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 9th, 2012, 02:19 PM
Authorized User
 
Join Date: Aug 2005
Posts: 88
Thanks: 4
Thanked 0 Times in 0 Posts
Default Background Image

Pages 771 and 995 refer to background images, but are no help with a situation I have.

I upgraded a program written in Visual Basic 2008 to Visual Basic 2010. The program has three main forms and each of the forms had a background image which worked fine in version 2008, but in version 2010 the image does not appear even though the image is shown in the Background Image property, and the Background Image Layout property is set to Tile.

Am I missing something?
 
Old February 9th, 2012, 03:45 PM
Rod Stephens's Avatar
Wrox Author
 
Join Date: Jan 2006
Posts: 647
Thanks: 2
Thanked 96 Times in 95 Posts
Default

Strange. I tried upgrading a application that I have from 2008 to 2010 and it worked okay.

I would try reassigning the BackgroundImage property. Right-click on the property and select Reset. Then assign the image again and see if that works.
__________________
Rod

Rod Stephens, Microsoft MVP

Essential Algorithms: A Practical Approach to Computer Algorithms

(Please post reviews at Amazon or wherever you shop!)
 
Old February 9th, 2012, 06:20 PM
Authorized User
 
Join Date: Aug 2005
Posts: 88
Thanks: 4
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by Rod Stephens View Post
Strange. I tried upgrading a application that I have from 2008 to 2010 and it worked okay.

I would try reassigning the Background Image property. Right-click on the property and select Reset. Then assign the image again and see if that works.
Thanks,Rod, for the very quick to my response. I tried to reassign theimage as you suggested. to no avail. I also ran the install program in repair mode, also with no success and have set up a very small new program with only a form and Text Box, and couldn't get it to work.

Do you think that I should uninstall and reinstall Visual Basic?

Milt
 
Old February 9th, 2012, 06:37 PM
Rod Stephens's Avatar
Wrox Author
 
Join Date: Jan 2006
Posts: 647
Thanks: 2
Thanked 96 Times in 95 Posts
Default

Quote:
and have set up a very small new program with only a form and Text Box, and couldn't get it to work.
By that do you mean you created a form and could not successfully set its BackgroundImage property? I would try that first. Be sure you do it by clicking the ellipsis to the right of the property and letting Visual Studio add the image to the project the way it likes to.

If that doesn't work, I hate to tell you to reinstall because it's a hassle but I don't know what else to try. You could try posting on a Microsoft forum and google around a bit to see if anyone else has seen this issue but other than that...
__________________
Rod

Rod Stephens, Microsoft MVP

Essential Algorithms: A Practical Approach to Computer Algorithms

(Please post reviews at Amazon or wherever you shop!)
 
Old February 15th, 2012, 11:47 AM
Authorized User
 
Join Date: Aug 2005
Posts: 88
Thanks: 4
Thanked 0 Times in 0 Posts
Default Background Image

Rod

I tried everything you suggested to no avail....

On page 194 the book indicates "You cannot define an objects background image more then once...." Do you think the XAML file could be corrupted? If so, is there a way that I can identify and correct the problem?

I appreciate the effort and time you have taken to try and help.

Milt
 
Old February 15th, 2012, 11:54 AM
Rod Stephens's Avatar
Wrox Author
 
Join Date: Jan 2006
Posts: 647
Thanks: 2
Thanked 96 Times in 95 Posts
Default

Is this a WPF application? I've had a lot more trouble getting images to work in WPF. (If it's WPF, let me know and I'll rethink.)

If it's Windows Forms, I would try making a new application from scratch and assigning its BackgroundImage property. If that doesn't work, I have to think you're stuck. If it's code behind the scenes is messed up in a new program, then the IDE must be messing it up for you and I don't see how you'd be able to get it fixed without repairing or reinstalling Visual Studio.
__________________
Rod

Rod Stephens, Microsoft MVP

Essential Algorithms: A Practical Approach to Computer Algorithms

(Please post reviews at Amazon or wherever you shop!)
 
Old February 15th, 2012, 08:38 PM
Authorized User
 
Join Date: Aug 2005
Posts: 88
Thanks: 4
Thanked 0 Times in 0 Posts
Default

Thanks Rod, for trying to help, I already run the repair option of set up so I think the only choice left is to uninstall and re-install.

I appreciate the suggestions and time you took try and help me.

Milt





Similar Threads
Thread Thread Starter Forum Replies Last Post
background-color vs background-image cangrejero CSS Cascading Style Sheets 1 February 20th, 2011 09:39 PM
how to get background image url? sbkrohit CSS Cascading Style Sheets 2 October 23rd, 2008 11:06 AM
Background image in IE7 Samurai CSS Cascading Style Sheets 0 May 21st, 2008 10:46 PM
Background Image for GUI Floetic Java GUI 2 April 17th, 2008 09:54 PM
background image problems Seraphim Beshoner CSS Cascading Style Sheets 3 April 11th, 2005 09:14 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.