Wrox Programmer Forums
|
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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 10th, 2014, 02:37 PM
Registered User
 
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





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





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.