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.
2.
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