 |
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
|
|
|
|

February 9th, 2012, 02:19 PM
|
|
Authorized User
|
|
Join Date: Aug 2005
Posts: 88
Thanks: 4
Thanked 0 Times in 0 Posts
|
|
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?
|
|

February 9th, 2012, 03:45 PM
|
 |
Wrox Author
|
|
Join Date: Jan 2006
Posts: 647
Thanks: 2
Thanked 96 Times in 95 Posts
|
|
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.
|
|

February 9th, 2012, 06:20 PM
|
|
Authorized User
|
|
Join Date: Aug 2005
Posts: 88
Thanks: 4
Thanked 0 Times in 0 Posts
|
|
Quote:
Originally Posted by Rod Stephens
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
|
|

February 9th, 2012, 06:37 PM
|
 |
Wrox Author
|
|
Join Date: Jan 2006
Posts: 647
Thanks: 2
Thanked 96 Times in 95 Posts
|
|
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... 
|
|

February 15th, 2012, 11:47 AM
|
|
Authorized User
|
|
Join Date: Aug 2005
Posts: 88
Thanks: 4
Thanked 0 Times in 0 Posts
|
|
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
|
|

February 15th, 2012, 11:54 AM
|
 |
Wrox Author
|
|
Join Date: Jan 2006
Posts: 647
Thanks: 2
Thanked 96 Times in 95 Posts
|
|
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.
|
|

February 15th, 2012, 08:38 PM
|
|
Authorized User
|
|
Join Date: Aug 2005
Posts: 88
Thanks: 4
Thanked 0 Times in 0 Posts
|
|
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
|
|
 |
|