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. getting the tip message for method during design time

getting the tip message for method during design time

Scheduled Pinned Locked Moved C#
csharpvisual-studiodesigntutorialquestion
9 Posts 7 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.
  • B Offline
    B Offline
    Blubbo
    wrote on last edited by
    #1

    When typing in the method during writing the code, I noticed that Visual Studio display the description of the method on what it does. I know I found info somewhere in the past but can't find it! How do I do that on my code so it would be easier for other developer to know what these methods are for. It'll be useful for the method overloading. For example, when you type as follows: MessageBox.Show( you'll get the message saying from the tip as follows: 1 of 21 DialogResult MessageBox.Show (string text) text: The text to display in the message box.

    M 1 Reply Last reply
    0
    • B Blubbo

      When typing in the method during writing the code, I noticed that Visual Studio display the description of the method on what it does. I know I found info somewhere in the past but can't find it! How do I do that on my code so it would be easier for other developer to know what these methods are for. It'll be useful for the method overloading. For example, when you type as follows: MessageBox.Show( you'll get the message saying from the tip as follows: 1 of 21 DialogResult MessageBox.Show (string text) text: The text to display in the message box.

      M Offline
      M Offline
      musefan
      wrote on last edited by
      #2

      type '///' before the method and it will autotype a summary i.e.

      ///<summary>
      /// this method does stuff
      /// <param name="s">string for s</param>
      /// <summary>
      void DoStuff(string s)
      {

      }

      B 1 Reply Last reply
      0
      • M musefan

        type '///' before the method and it will autotype a summary i.e.

        ///<summary>
        /// this method does stuff
        /// <param name="s">string for s</param>
        /// <summary>
        void DoStuff(string s)
        {

        }

        B Offline
        B Offline
        Blubbo
        wrote on last edited by
        #3

        THANKS! That's the answer I wanted! That's even better than the info I found in the past (manually doing the tips via xml). Now I see why the sample codes elsewhere use /// stuff. I had no idea why coders use 3 slashes. THANKS A HEAP! That's a new lesson I've learned today.

        M E P 3 Replies Last reply
        0
        • B Blubbo

          THANKS! That's the answer I wanted! That's even better than the info I found in the past (manually doing the tips via xml). Now I see why the sample codes elsewhere use /// stuff. I had no idea why coders use 3 slashes. THANKS A HEAP! That's a new lesson I've learned today.

          M Offline
          M Offline
          musefan
          wrote on last edited by
          #4

          No Probs :), took me a while before i learnt that too, is very useful thou

          1 Reply Last reply
          0
          • B Blubbo

            THANKS! That's the answer I wanted! That's even better than the info I found in the past (manually doing the tips via xml). Now I see why the sample codes elsewhere use /// stuff. I had no idea why coders use 3 slashes. THANKS A HEAP! That's a new lesson I've learned today.

            E Offline
            E Offline
            Ennis Ray Lynch Jr
            wrote on last edited by
            #5

            // Is standard single line comment /// is standard single line xml comments /* * Is standard multiple line comments */ /** * Is multiple line xml comments */

            Need software developed? Offering C# development all over the United States, ERL GLOBAL, Inc is the only call you will have to make.
            If you don't ask questions the answers won't stand in your way.
            Most of this sig is for Google, not ego.

            P 1 Reply Last reply
            0
            • B Blubbo

              THANKS! That's the answer I wanted! That's even better than the info I found in the past (manually doing the tips via xml). Now I see why the sample codes elsewhere use /// stuff. I had no idea why coders use 3 slashes. THANKS A HEAP! That's a new lesson I've learned today.

              P Offline
              P Offline
              Pete OHanlon
              wrote on last edited by
              #6

              It also gets used to provide the documentation you see in CHM files. If you have this before a method, choose the documentation options in your project you can produce a documentation file that you can use to create a help file from (using a utility like Sandcastle).

              "WPF has many lovers. It's a veritable porn star!" - Josh Smith

              My blog | My articles | MoXAML PowerToys

              D N 2 Replies Last reply
              0
              • E Ennis Ray Lynch Jr

                // Is standard single line comment /// is standard single line xml comments /* * Is standard multiple line comments */ /** * Is multiple line xml comments */

                Need software developed? Offering C# development all over the United States, ERL GLOBAL, Inc is the only call you will have to make.
                If you don't ask questions the answers won't stand in your way.
                Most of this sig is for Google, not ego.

                P Offline
                P Offline
                PIEBALDconsult
                wrote on last edited by
                #7

                // Is a lazy-a$$ comment, only weak developers use it /// Is a lazy-a$$ XML comment, only weak developers use it /* * Is a proper comment */ /** * Is a proper XML comment */

                1 Reply Last reply
                0
                • P Pete OHanlon

                  It also gets used to provide the documentation you see in CHM files. If you have this before a method, choose the documentation options in your project you can produce a documentation file that you can use to create a help file from (using a utility like Sandcastle).

                  "WPF has many lovers. It's a veritable porn star!" - Josh Smith

                  My blog | My articles | MoXAML PowerToys

                  D Offline
                  D Offline
                  DaveyM69
                  wrote on last edited by
                  #8

                  Cool - I didn't know that. Nice tip Pete :beer:

                  Dave
                  BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)
                  Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia)

                  1 Reply Last reply
                  0
                  • P Pete OHanlon

                    It also gets used to provide the documentation you see in CHM files. If you have this before a method, choose the documentation options in your project you can produce a documentation file that you can use to create a help file from (using a utility like Sandcastle).

                    "WPF has many lovers. It's a veritable porn star!" - Josh Smith

                    My blog | My articles | MoXAML PowerToys

                    N Offline
                    N Offline
                    Najmal
                    wrote on last edited by
                    #9

                    Its a nice feature of .NET... thnks sir.....

                    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