Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old February 9th, 2012, 02:19 PM
Authorized User
Points: 406, Level: 7
Points: 406, Level: 7 Points: 406, Level: 7 Points: 406, Level: 7
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2005
Location: Florida
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?
Reply With Quote
  #2 (permalink)  
Old February 9th, 2012, 03:45 PM
Rod Stephens's Avatar
Wrox Author
Points: 3,145, Level: 23
Points: 3,145, Level: 23 Points: 3,145, Level: 23 Points: 3,145, Level: 23
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2006
Location: , , .
Posts: 641
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!)
Reply With Quote
  #3 (permalink)  
Old February 9th, 2012, 06:20 PM
Authorized User
Points: 406, Level: 7
Points: 406, Level: 7 Points: 406, Level: 7 Points: 406, Level: 7
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2005
Location: Florida
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
Reply With Quote
  #4 (permalink)  
Old February 9th, 2012, 06:37 PM
Rod Stephens's Avatar
Wrox Author
Points: 3,145, Level: 23
Points: 3,145, Level: 23 Points: 3,145, Level: 23 Points: 3,145, Level: 23
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2006
Location: , , .
Posts: 641
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!)
Reply With Quote
  #5 (permalink)  
Old February 15th, 2012, 11:47 AM
Authorized User
Points: 406, Level: 7
Points: 406, Level: 7 Points: 406, Level: 7 Points: 406, Level: 7
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2005
Location: Florida
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
Reply With Quote
  #6 (permalink)  
Old February 15th, 2012, 11:54 AM
Rod Stephens's Avatar
Wrox Author
Points: 3,145, Level: 23
Points: 3,145, Level: 23 Points: 3,145, Level: 23 Points: 3,145, Level: 23
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2006
Location: , , .
Posts: 641
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!)
Reply With Quote
  #7 (permalink)  
Old February 15th, 2012, 08:38 PM
Authorized User
Points: 406, Level: 7
Points: 406, Level: 7 Points: 406, Level: 7 Points: 406, Level: 7
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2005
Location: Florida
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
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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 12:06 PM
Background image in IE7 Samurai CSS Cascading Style Sheets 0 May 21st, 2008 11:46 PM
Background Image for GUI Floetic Java GUI 2 April 17th, 2008 10:54 PM
background image problems Seraphim Beshoner CSS Cascading Style Sheets 3 April 11th, 2005 10:14 PM



All times are GMT -4. The time now is 03:43 AM.


Powered by vBulletin®
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.