Continuing with the Head First C# programming eBook. This is a windows form application. Followed the text:
<i>__ Chapter 2
The IDE is great at writing visual code for you. But don’t take our word for it. Open up Visual Studio, create a new Windows Forms Application project, and see for yourself. Open up the designer code
Open the file in the IDE. But this time, instead of opening it in
the Form Designer, open up its code by right-clicking on it in the Solution Explorer and
selecting “View Code.” Look for the class declaration:
_
Notice how it’s a partial class? We’ll talk about that in a minute.

Find and expand the designer-generated code for the PictureBox control
Then go back to the Form1.Designer.cs tab in the IDE. Scroll down and look for this line in the code:
Click on the + on the left-hand side of the line to expand the code. Scroll down and find these lines:

//
// pictureBox1
//
This .pictureBox1.Location = New System.Drawing.Point (276 , 28) ;
This. pictureBox1.Name = “pictureBox1”;
This.pictureBox1.Size = New System.Drawing.Size (100 , 50);
This.pictureBox1.TabIndex = 0;
This.pictureBox1.TabStop = False

Top of Windows Form Designer – generated code section is supposed to say

/// <summary>
/// Required method for designer support – do not modify
/// the contents of this method with the code editor.
///<summary></i>

<a href=""><a href="https://skydrive.live.com/redir?resid=52B21D2F3F75A51A!1360">https://skydrive.live.com/redir?resid=52B21D2F3F75A51A!1360</a>[<a href="https://skydrive.live.com/redir?resid=52B21D2F3F75A51A!1360" target="_blank" title="New Window">^</a>] </a>

Cannot match the text in my IDE to the lesson material. Seeking guidance

What version of Visual Studio is being referenced in the book?
And what version are you using?
If those are not the same, that might explain the difference in what you see.

You haven't expanded the designer code, why would you expect to see the designer code? Click the plus just like it told you to do.

This article has been dead for over six months. Start a new discussion instead.