Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Studio
  4. Code View Issue in Visual Studio Team System 2008

Code View Issue in Visual Studio Team System 2008

Scheduled Pinned Locked Moved Visual Studio
csharpvisual-studiowinformscomgraphics
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    mauricemcse
    wrote on last edited by
    #1

    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

    L 1 Reply Last reply
    0
    • M mauricemcse

      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

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      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]

      speaking as ...

      M 1 Reply Last reply
      0
      • L Lost User

        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]

        speaking as ...

        M Offline
        M Offline
        mauricemcse
        wrote on last edited by
        #3

        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.

        L 1 Reply Last reply
        0
        • M mauricemcse

          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.

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          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]

          speaking as ...

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups