Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > C# and C > C# 2012/5.0 > BOOK: Beginning Object-Oriented Programming with C#
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: Beginning Object-Oriented Programming with C#
This is the forum to discuss the Wrox book Beginning Object-Oriented Programming with C# by Jack Purdum; ISBN: 978-1-1183-3692-2
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning Object-Oriented Programming with C# 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 August 10th, 2014, 02:37 PM
Registered User
Points: 5, Level: 1
Points: 5, Level: 1 Points: 5, Level: 1 Points: 5, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2014
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Beginning Object Oriented Programming with C#

Beginning Object Oriented Programming with C#
ISBN 978-1-118-33692-2
Page 37 towards the end of paragraph 3
Quote:
and you can see this code:

Code:
Private void button_Click (object sender, EventArgs e)
{
}
This is stub code for the button object. Now add the following line of code
between the two parentheses of the stub code:
Code:
frmMain.ActiveForm.Text = textBox1.Text;
Following these instructions VS confronts me with the dreaded red squiggly
lines and the following error messages hovering the cursor over the code underlined with the squiggly red line:
1.
Code:
frmMain.
Quote:
") expected
2.
Code:
ActiveForm.Text
Quote:
'System.Windows>Forms.Form.ActiveForm' is a 'property' but is used like a 'type'
3. =
Quote:
Invalid token '=' in class, struct, or interface member declaration
4. Text
Quote:
The type name 'Text' does not exist in the type 'Chapter02Program01.textBox'
Being a complete novice at programming and seriously wanting to become one
I'll appreciate any help with this.
Of the books that I've read this one and "Beginning C For Arduino" also by
Dr Purdum are by far the most instructive.

Thanks.

ulickvaranga
 


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
Object Oriented Programming and Database Design Pronoy Pradhananga BOOK: Beginning Database Design Solutions ISBN: 978-0-470-38549-4 4 March 21st, 2011 10:16 PM
Object Oriented Programming jgrant C# 2005 0 March 16th, 2007 03:04 AM
Object oriented programming with VB6 james gold Pro VB 6 3 September 27th, 2003 02:31 PM
Object oriented programming with VB6 james gold VB How-To 2 September 23rd, 2003 09:29 AM
Object oriented programming with VB6 james gold Beginning VB 6 3 September 18th, 2003 02:56 PM



All times are GMT -4. The time now is 06:26 AM.


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