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.

<a href=""><a href="!1360">!1360</a>[<a href="!1360" target="_blank" title="New Window">^</a>] </a>

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

Re: Visual Studio C# Code View Issue 80 80

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.

Re: Visual Studio C# Code View Issue 80 80

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.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.18 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.