Beginning Object Oriented Programming with C#
Page 37 towards the end of paragraph 3
and you can see this code:
This is stub code for the button object. Now add the following line of code
Private void button_Click (object sender, EventArgs e)
between the two parentheses of the stub 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:
'System.Windows>Forms.Form.ActiveForm' is a 'property' but is used like a 'type'
Invalid token '=' in class, struct, or interface member declaration
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.