Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: Stephens' C# Programming with Visual Studio 2010 24-Hour Trainer
This is the forum to discuss the Wrox book Stephens' C# Programming with Visual Studio 2010 24-Hour Trainer by Rod Stephens; ISBN: 9780470596906
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Stephens' C# Programming with Visual Studio 2010 24-Hour Trainer 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 Search this Thread Display Modes
  #1 (permalink)  
Old November 30th, 2011, 07:32 AM
Registered User
Points: 23, Level: 1
Points: 23, Level: 1 Points: 23, Level: 1 Points: 23, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Nov 2011
Location: Sweden
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default Lesson 7

Hi.
I downloaded the solution from lesson 6, exercise 5 and now try to enter contenRichTextBox.Undo(); but Intellisense doesn´t find anything close to that and when I try to enter the whole thing it´s also wrong.

When looking at the solution from lesson 7 I notice that the names are different on the RichTextBoxes and I then get it to work when I choose richTextBox.Undo() instead.

I had the same problem with some earlier lessons and maybe it could be a god idea to have a small note that the name is the name in your form?

Took me a while to figure out and hopefully I learnd something...

Also I took this opertunity look for the answer, register and make my first question....

Cheers

/Kim
  #2 (permalink)  
Old November 30th, 2011, 11:16 AM
Rod Stephens's Avatar
Wrox Author
Points: 3,166, Level: 23
Points: 3,166, Level: 23 Points: 3,166, Level: 23 Points: 3,166, Level: 23
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2006
Location: , , .
Posts: 647
Thanks: 2
Thanked 96 Times in 95 Posts
Default

Hi Kim,

Sorry about that. During editing the technical editors suggested some name changes and unfortunately they did not all get made in both the book and the code. I know it's frustrating and I apologize.

In general if IntelliSense can't find a symbol such as a name, the first thing to check is that the symbol actually exists. In this case (and many others) that means looking at the form or the variable declarations and making sure they are spelled the same way. It's very common for a programmer to name a control LastNameTextBox but then type LastNmeTextBox in the code and not notice the typo.

In fact, you can often avoid that problem by making IntelliSense type for you. In this example, you could type Last and then press Shift+Space to make IntelliSense list the options. Then you can select the name without needing to retype it.

Sorry again.
__________________
Rod

Rod Stephens, Microsoft MVP

Essential Algorithms: A Practical Approach to Computer Algorithms

(Please post reviews at Amazon or wherever you shop!)
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
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
Lesson 4 Femi Sonuga BOOK: Knight's Microsoft Business Intelligence 24-Hour Trainer 0 November 25th, 2011 10:25 AM
Lesson 4 - Try It brookesmith BOOK: JavaScript 24-Hour Trainer 2 September 15th, 2011 05:40 PM
Lesson 4 Mtheys BOOK: Java Programming 24-Hour Trainer by Yakov Fain 3 September 15th, 2011 05:02 AM
Lesson 8 sergeySE BOOK: Java Programming 24-Hour Trainer by Yakov Fain 1 June 29th, 2011 09:49 AM
Lesson 6 Try It zavodney BOOK: Stephens' Visual Basic Programming 24-Hour Trainer 2 June 6th, 2011 10:07 PM



All times are GMT -4. The time now is 10:34 PM.


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