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. C#
  4. beginner question: how to add method to a class using wizard in VC#2008?

beginner question: how to add method to a class using wizard in VC#2008?

Scheduled Pinned Locked Moved C#
questioncsharptutoriallearning
6 Posts 4 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.
  • S Offline
    S Offline
    sharp_k
    wrote on last edited by
    #1

    The documents says right click on class in 'class view' and click on 'add > method'. I do not see this option. Thanks

    C M T 3 Replies Last reply
    0
    • S sharp_k

      The documents says right click on class in 'class view' and click on 'add > method'. I do not see this option. Thanks

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      Even if such a method existed, you'd do better to learn to code. Just type your method in. Odds are it's not in the express edition or something.

      Christian Graus Please read this if you don't understand the answer I've given you "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

      S 1 Reply Last reply
      0
      • S sharp_k

        The documents says right click on class in 'class view' and click on 'add > method'. I do not see this option. Thanks

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

        sharp_k wrote:

        'add > method'

        You can only add classes using the class view. Cheers,

        Mark Brock Click here to view my blog

        1 Reply Last reply
        0
        • C Christian Graus

          Even if such a method existed, you'd do better to learn to code. Just type your method in. Odds are it's not in the express edition or something.

          Christian Graus Please read this if you don't understand the answer I've given you "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

          S Offline
          S Offline
          sharp_k
          wrote on last edited by
          #4

          coding by hand is always fun but at least if the documentation says something, we should expect it to happen. And then wizards speed up things a little too. I am using VS team suite.

          1 Reply Last reply
          0
          • S sharp_k

            The documents says right click on class in 'class view' and click on 'add > method'. I do not see this option. Thanks

            T Offline
            T Offline
            tgrt
            wrote on last edited by
            #5

            I don't know what documents you are referring to, but you cannot add methods using the "Class View" window. I think what the documents are referring to is the class diagram. You can right click the model of the class in the diagram and choose Add->Method.

            S 1 Reply Last reply
            0
            • T tgrt

              I don't know what documents you are referring to, but you cannot add methods using the "Class View" window. I think what the documents are referring to is the class diagram. You can right click the model of the class in the diagram and choose Add->Method.

              S Offline
              S Offline
              sharp_k
              wrote on last edited by
              #6

              It is in MSDN. Yes i did try the class diagram and it works there but as a previous VC++ user, I thought C# will provide the same functionality as well.

              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