Code View Issue in Visual Studio Team System 2008
-
Continuing with the Head First C# programming eBook. This is a windows form application. Followed the text: __ 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 /// /// Required method for designer support – do not modify /// the contents of this method with the code editor. /// https://skydrive.live.com/redir?resid=52B21D2F3F75A51A!1360[^] Cannot match the text in my IDE to the lesson material. Seeking guidance
-
Continuing with the Head First C# programming eBook. This is a windows form application. Followed the text: __ 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 /// /// Required method for designer support – do not modify /// the contents of this method with the code editor. /// https://skydrive.live.com/redir?resid=52B21D2F3F75A51A!1360[^] Cannot match the text in my IDE to the lesson material. Seeking guidance
mauricemcse wrote:
Cannot match the text in my IDE to the lesson material. Seeking guidance
Looks fine to me; you clearly have a
PictureBox
object within your class (see the bottom of the page), and if you expand the block where it says Windows Form Designer generated code (click on the + at left) you will see how it gets created and positioned on the form. [edit] Just curious, does the MCSE at the end of your name actually mean anything? [/edit] -
mauricemcse wrote:
Cannot match the text in my IDE to the lesson material. Seeking guidance
Looks fine to me; you clearly have a
PictureBox
object within your class (see the bottom of the page), and if you expand the block where it says Windows Form Designer generated code (click on the + at left) you will see how it gets created and positioned on the form. [edit] Just curious, does the MCSE at the end of your name actually mean anything? [/edit]Much thanks for your timely reply. I did find the code at the bottom of the page contrary to the ebook. Also know that I did attend classes for the Microsoft Certified Systems Engineer Course years ago. Passed three of the six exams but was hired as a systems administrator at one of the nation's foremost philanthropies for ten years. never found time to prepare for the remaining exams and so I settled for the Microsoft Certified Professional Certification. Obviously, none of this knowledge transferred to software development and so it through the support of forum members that I advance myself.
-
Much thanks for your timely reply. I did find the code at the bottom of the page contrary to the ebook. Also know that I did attend classes for the Microsoft Certified Systems Engineer Course years ago. Passed three of the six exams but was hired as a systems administrator at one of the nation's foremost philanthropies for ten years. never found time to prepare for the remaining exams and so I settled for the Microsoft Certified Professional Certification. Obviously, none of this knowledge transferred to software development and so it through the support of forum members that I advance myself.
mauricemcse wrote:
I did find the code at the bottom of the page contrary to the ebook.
I think you mean as described in the ebook. [edit]
mauricemcse wrote:
Obviously, none of this knowledge transferred to software development
So what was the point of it? [/edit]