Results 1 to 6 of 6

Thread: [RESOLVED] Tooltip description

  1. #1

    Thread Starter
    Arabic Poster ComputerJy's Avatar
    Join Date
    Nov 2005
    Location
    Happily misplaced
    Posts
    2,513

    Resolved [RESOLVED] Tooltip description

    Hey all,

    I was wondering "how can I set tooltip description for my methods and vars like .NET ready classes?"

    another thing, what's "3.0/LINQ"?
    "I'm not normally a praying man, but if you're up there, save me... Superman!" - Homer Simpson
    My Blog

  2. #2
    PowerPoster sunburnt's Avatar
    Join Date
    Feb 2001
    Location
    Boulder, Colorado
    Posts
    1,403

    Re: Tooltip description

    Use the XML comments to create tooltips for your functions and classes.

    If you put /// on top of a function or class name, it should auto-generate some fields for you.

    Here's an example.

    Code:
            /// <summary>
            /// Provides the ability to seek on the internal buffer
            /// as well as both the Reader and Writer.
            /// </summary>
            /// <param name="offset">The new position within the stream, relative to the location.  This can be positive or negative</param>
            /// <param name="loc">The seek reference point.</param>
            public void Seek(long offset, SeekOrigin loc)
            {
                    ms.Seek(offset, loc);
            }
    Every passing hour brings the Solar System forty-three thousand miles closer to Globular Cluster M13 in Hercules -- and still there are some misfits who insist that there is no such thing as progress.

  3. #3
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: Tooltip description

    You need to add XML comment blocks to your property and method declarations and then enable the XML documentation file in the project properties under Build -> Output. Place your cursor before or above a declaration, type three slashes and hit enter. Voila.

    C# 3.0 is the version of the C# language that will be released to coincide with version 3.0 of the .NET Framework. LINQ is what MSDN says it is. MSDN is the first place to go for any query relating to Microsoft development.

    http://msdn.microsoft.com/vcsharp/future/default.aspx
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  4. #4

    Thread Starter
    Arabic Poster ComputerJy's Avatar
    Join Date
    Nov 2005
    Location
    Happily misplaced
    Posts
    2,513

    Re: Tooltip description

    So, does that mean that it's not doable in VB?
    "I'm not normally a praying man, but if you're up there, save me... Superman!" - Homer Simpson
    My Blog

  5. #5
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: Tooltip description

    In VB you use three single quotes instead of three slashes. The functionality is built into VB 2005 but VB.NET 2003 requires a plug-in. You also don't need to specify a documentation file in VB. It automatically creates MyApp.xml where MyApp.exe would be your assembly. Note that you can also use a tool like NDoc to generate MSDN-style help files for your assemblies from these XML files. You'd normally only do that for libraries though.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  6. #6

    Thread Starter
    Arabic Poster ComputerJy's Avatar
    Join Date
    Nov 2005
    Location
    Happily misplaced
    Posts
    2,513

    Re: Tooltip description

    Thank you all very much
    "I'm not normally a praying man, but if you're up there, save me... Superman!" - Homer Simpson
    My Blog

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width