Results 1 to 6 of 6

Thread: [RESOLVED] [2005] Component Property

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    May 2003
    Posts
    758

    Resolved [RESOLVED] [2005] Component Property

    This should be simple...

    I have a component that I created in a VB 2005 project with a method named ProcessClick. I placed the component on a form and named it pnlTest. If I go to the FormLoad event handler and type in pnlTest(dot) and look at what intelisense gives me, I show the ProcessClick method. However, when I hover over the method, I don't see the description I set for it. How do I make the description show???

    Here is the code I currently have to set the description:
    Code:
        <System.ComponentModel.Description("Generates a System.Windows.Forms.Control.Click event.")> _
        Public Sub PerformClick()
            Call OnClick(Nothing)
        End Sub
    My.Settings.Signature = String.Empty

  2. #2
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687

    Re: [2005] Component Property

    That sets the description for the Component (I think)... put a blank line between the XML comment there and the Public sub.... then hit the single tick mark three times. The IDE will insert a set of comments that you can then fill out. That should give you the intellisense comments I think you are looking for.

    -tg
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    May 2003
    Posts
    758

    Re: [2005] Component Property

    What are you referring to as a "single tick mark"? I tried a single quote and that got me nothing.
    My.Settings.Signature = String.Empty

  4. #4
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687

    Re: [2005] Component Property

    it should have come out looking something like this:
    Code:
        ''' <summary>
        ''' 
        ''' </summary>
        ''' <remarks></remarks>
        Public Sub PerformClick()
            Call OnClick(Nothing)
        End Sub
    -tg

    EDIT - Ah, I think I see why.... remove the previous XML attribute you had on there... I didn't see that there was a line continuation on it... or try puttin the ''' on the line BEFORE the XML attribute.

    -tg
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  5. #5

    Thread Starter
    Fanatic Member
    Join Date
    May 2003
    Posts
    758

    Re: [2005] Component Property

    Summary is the way to go. It didn't automatically type it for me, though. I wonder if there is a setting that can make that happen.
    My.Settings.Signature = String.Empty

  6. #6
    Frenzied Member zuperman's Avatar
    Join Date
    Dec 2000
    Location
    Portugal
    Posts
    1,033

    Re: [RESOLVED] [2005] Component Property

    dont know if this is in the context... but worth to take a look:
    http://www.roland-weigelt.de/ghostdoc/
    Help keep this forum clean: Remember to mark your thread as resolved · Search before you post · Remember to rate posts that help

    VS2010: Visual Studio 2010 Keybinding Posters
    · Service Pack 1
    Tools: GhostDoc - automatically generates XML documentation comments
    · NuGet package Manager · PowerCommands IDE extensions
    Source Control: ankhsvn - integration for SVN
    · Windows Shell Extension for Subversion

    Development Laptop: Intel Core i5 430M 2.26 GHz @ 2.53 GHz
    · 4096 MB, DDR3 PC3-8500F (533 MHz), Kingston · ATI Mobility Radeon HD 5470 · 15.6 @ 16:9, 1366x768 pixel, HD LED LCD

    I follow:
    JoelOnSoftware - A weblog by Joel Spolsky, a programmer working in New York City, about software and software companies
    ScottGu's Blog - Scott Guthrie works for Microsoft as the Product Manager of the .NET Framework
    Portugal-a-Programar - Portuguese Developers Community
    .NET Rocks! - is a weekly Internet audio talk show for .NET Developers.

    Programming Languages:
    C#
    · VB.NET · JAVA · PHP · Javascript
    Other:
    XML
    · HTML · CSS · JQuery · SQL



    *** Proudly Portuguese ***

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