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: Wrox's Visual Basic 2005 Express Edition Starter Kit ISBN: 978-0-7645-9573-8
This is the forum to discuss the Wrox book Wrox's Visual Basic 2005 Express Edition Starter Kit by Andrew Parsons; ISBN: 9780764595738
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Wrox's Visual Basic 2005 Express Edition Starter Kit ISBN: 978-0-7645-9573-8 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 8th, 2006, 03:47 PM
Registered User
 
Join Date: Jan 2006
Location: Cabot, AR, USA.
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default Chapter 6 Try It Now Problem

Hello!

In the section on CONTROL FREAKS ARE GOOD, on # 4, I am having problems following the directions. Here's what it says:

"Two useful commands that you'll build the code for later in this book are not present. They are shortcuts to delete the currently selected person from the list and to enable the user to log off. Click on the ToolStrip to make it active and show the in-place editor. In the Type Here area, enter Delete and press Enter to save the new button.

Repeat this action and add a new button with a text label of Logoff."

When I click the toolbar, I don't get the TYPE HERE...only when I click on the main menu bar. Is this an error? If not, what am I doing wrong?

Thanks!


Reply With Quote
  #2 (permalink)  
Old February 18th, 2006, 08:33 AM
Wrox Author
 
Join Date: Jan 2006
Location: Sydney, NSW, Australia.
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi there,

Thank you so much for bringing this to my attention. In the very last build of Visual Basic Express, Microsoft changed the way toolbars work and we tried to get the changes into the manuscript. I will be writing up a full explanation of how to achieve this part of the walkthrough with the latest version of Visual Basic Express and will post it here as soon as possible.

Sorry you've hit this snag. To quickly get you past it, you can create a new button on the toolbar by clicking the inplace AddToolStripButton command on the toolbar. Right click on the icon that is displayed and change the DisplayStyle to Text. Now you can change the Text property in the Properties window to the string specified in the chapter. Repeat this process for the second button added to the toolbar.

Regards
Andrew
Reply With Quote
  #3 (permalink)  
Old May 4th, 2006, 08:58 AM
Authorized User
 
Join Date: Oct 2005
Location: South Ockendon, Essex, United Kingdom.
Posts: 41
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Figgis
Default

I came across that problem too. I did figure out how to get around it and created the buttons that were needed.

However within the same chapter I came across another problem. I have sent this through using the errata form but it may be worth mentioning here. The description that I sent is as follows:-

Page 117 step 3 of the Try it Out states within the With Statement that ".Anchor = AnchorStyles.Bottom + AnchorStyles.Right". When you enter this in Visual Basic 2005 Express states that this is a mistake and suggestes that it is changed to ".Anchor = CType(AnchorStyles.Bottom + AnchorStyles.Right, AnchorStyles)"

The odd thing is that the downloaded code for this book is exactly as the book states and it works fine. It wont work when I type it in. I thought this may have been due to a mistake that I had made but if it is I cant find it. I have been right back to the begining of the book and double checked everything I can find. Luckily when you accept the change that VB 2005 Express sugests it works fine however it is confusing for a beginer


Regards,

Figgis
Reply With Quote
  #4 (permalink)  
Old May 13th, 2006, 10:23 AM
Wrox Author
 
Join Date: Jan 2006
Location: Sydney, NSW, Australia.
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Figgis,

Unfortunately the code downloaded is probably not exactly the way your own creation is. Some of the examples neglected to have the Option Strict setting turned on which allows some statements to compile successfully such as this one.

If you have Option Strict On, the line will not work and you will need to use the CType function to convert it to an AnchorStyles enumerated value.

This is because when you "add" two AnchorStyles enumeration values together, Visual Basic converts it implicitly to an Integer. Option Strict doesn't allow you to automatically convert an Interger back to an AnchorStyle enumerated value so you need to explicitly do it.

I am currently attempting to locate all the spots in the book where this kind of issue may pop up.

The CType change that Visual Basic suggests will work fine, or changing Option Strict to Off will also work.

Andrew

Reply With Quote
  #5 (permalink)  
Old May 14th, 2006, 07:36 PM
Authorized User
 
Join Date: Oct 2005
Location: South Ockendon, Essex, United Kingdom.
Posts: 41
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Figgis
Default

Andrew,

Many thanks for the reply. Does this mean that for each project you can have those options set differently? If we are to use the other projects do we have to check this out first?


Figgis
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
Having a problem in chapter 2 Okie BOOK: Beginning Access 2003 VBA 1 August 9th, 2007 11:30 AM
Chapter 5 Problem gogeo BOOK: Beginning Access 2003 VBA 1 October 10th, 2005 11:34 AM
Problem in chapter 7 gpauta JSP Basics 1 June 1st, 2004 05:31 AM
problem in chapter 4 gpauta JSP Basics 3 May 11th, 2004 07:31 AM



All times are GMT -4. The time now is 02:17 AM.


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