Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Visual Basic > VB 2005 > BOOK: Beginning Visual Basic 2005 ISBN: 978-0-7645-7401-6
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: Beginning Visual Basic 2005 ISBN: 978-0-7645-7401-6
This is the forum to discuss the Wrox book Beginning Visual Basic 2005 by Thearon Willis, Bryan Newsome; ISBN: 9780764574016
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning Visual Basic 2005 ISBN: 978-0-7645-7401-6 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
 
 
Thread Tools Display Modes
  #1 (permalink)  
Old July 11th, 2009, 10:18 AM
Authorized User
 
Join Date: Jun 2009
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Default What is the correct code on page 441 - 442?

Code:
Public Sub AddColor(ByVal newColor As Color)
Dim objColorPaletteButton As New ColorPaletteButton(newColor)-  Error 1
Buttons.Add(objColorPaletteButton)- Error 2
End Sub
After run,
-Error 1 Array bounds cannot appear in type specifiers.
-Error 2 Name 'objColorPaletteButton' is not declared.
  #2 (permalink)  
Old July 12th, 2009, 01:13 PM
Wrox Author
Points: 333, Level: 6
Points: 333, Level: 6 Points: 333, Level: 6 Points: 333, Level: 6
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Mar 2006
Location: , , .
Posts: 91
Thanks: 0
Thanked 5 Times in 5 Posts
Default

Grace,

I cannot see anything wrong. Can you download this chapters code and see if you can find the difference? You can download it at

http://www.wrox.com/WileyCDA/WroxTit...-DOWNLOAD.html

Bryan
  #3 (permalink)  
Old July 12th, 2009, 02:59 PM
Authorized User
 
Join Date: Jun 2009
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Can you fix this little problem? Because, this problem will effect the rest steps on the chapter 14, I couldn't get result same as on the page 444, Figure 14-3, I really want to know this chapter.
  #4 (permalink)  
Old July 12th, 2009, 11:58 PM
Wrox Author
Points: 333, Level: 6
Points: 333, Level: 6 Points: 333, Level: 6 Points: 333, Level: 6
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Mar 2006
Location: , , .
Posts: 91
Thanks: 0
Thanked 5 Times in 5 Posts
Default

You will need to put in all of your class code for more help. Your code looks correct. Bryan
  #5 (permalink)  
Old July 13th, 2009, 06:20 AM
Authorized User
 
Join Date: Jun 2009
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks, Bryan, I only add two more colors and recopy the errors.
 


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
Page 28 Mulitdimentional Array is not correct. Patrick Cambria BOOK: Professional Visual Basic 2008 ISBN: 978-0-470-19136-1 2 March 6th, 2009 12:43 PM
Master Page Method: Code-Behind for Content Page kwilliams ASP.NET 2.0 Professional 3 June 2nd, 2008 12:57 PM
Correct code stefanocinfo BOOK: Professional PHP 5 ISBN: 978-0-7645-7282-1 2 October 4th, 2006 03:06 AM
Ch 12, Try It Out, p.442, Line 3. Page not appear VictorVictor BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8 2 March 9th, 2006 04:18 PM
Is this code correct for a Dataview rayncarnation ASP.NET 1.0 and 1.1 Basics 0 November 7th, 2005 04:55 PM



All times are GMT -4. The time now is 03:50 PM.


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