Results 1 to 9 of 9

Thread: [2005] Add Intellisense To Class

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Aug 2002
    Location
    Fox, OK
    Posts
    381

    [2005] Add Intellisense To Class

    What do I add to the code (which is part of a class) below...

    Code:
    Public Score(0 To 4, 0 To MaxStudentCount) As String
    So that when I'm coding in my main program and I type the following...

    Code:
    Course.Student(i).Score(
    VB's intellisense will pop up and suggest something other than....

    Code:
    Score(,) As String
    How do I add the "suggestion"?

    I'd like to see something more like
    Code:
    Score(Quarter as integer, GradeIndex as integer) As String

  2. #2
    PowerPoster VBDT's Avatar
    Join Date
    Sep 2005
    Location
    CA - USA
    Posts
    2,922

    Re: [2005] Add Intellisense To Class

    Just on top of the method you press the Quotes key three times and it will place the xml code on top of the method. Then you just add a summary and the parameter discriptions.

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Aug 2002
    Location
    Fox, OK
    Posts
    381

    Re: [2005] Add Intellisense To Class

    Um, where? I tried Quotes three times in several places. No luck.

  4. #4
    PowerPoster VBDT's Avatar
    Join Date
    Sep 2005
    Location
    CA - USA
    Posts
    2,922

    Re: [2005] Add Intellisense To Class

    it hase to be right on top of the method and single quotes. Here is an example:
    vb Code:
    1. ''' <summary>
    2.     '''
    3.     ''' </summary>
    4.     ''' <param name="keyComb"></param>
    5.     ''' <remarks></remarks>
    6.     Public Sub Reset(ByVal keyComb As Keys)
    7.         Me._alt = Keys.None
    8.         Me._control = Keys.None
    9.         Me._shift = Keys.None
    10.         Me._key = Keys.None
    11.         Me._format = String.Empty
    12.         Me.SetKeys(keyComb)
    13.     End Sub

  5. #5

    Thread Starter
    Hyperactive Member
    Join Date
    Aug 2002
    Location
    Fox, OK
    Posts
    381

    Re: [2005] Add Intellisense To Class

    Ok, I got the XML to show up, but I don't know what to do with it¡!

    vb Code:
    1. ''' <summary>
    2.         ''' Quarter as integer, ScoreIndex as integer
    3.         ''' </summary>
    4.         ''' <remarks></remarks>
    5.         Public Score(0 To 4, 0 To MaxGradeCount) As String

  6. #6
    PowerPoster VBDT's Avatar
    Join Date
    Sep 2005
    Location
    CA - USA
    Posts
    2,922

    Re: [2005] Add Intellisense To Class

    Ah, you can't show discription of a variable, I was whowing for a method.

  7. #7
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: [2005] Add Intellisense To Class

    You can show the arguments int he description if you add them to the description text.
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  8. #8

    Thread Starter
    Hyperactive Member
    Join Date
    Aug 2002
    Location
    Fox, OK
    Posts
    381

    Re: [2005] Add Intellisense To Class

    How would I do that? Can you post an example from my code (in my 3rd post)?

  9. #9
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: [2005] Add Intellisense To Class

    Was this what you wanted?

    VB.NET Code:
    1. ''' <summary>    
    2. ''' This is a summary!    
    3. ''' </summary>    
    4. ''' <param name="Animal">Argument1: Animal as Cat. They rule, Meow!</param>    
    5. Public Sub Whatever(ByVal Animal As String)
    6.     MessageBox.Show("Meow!")
    7. End Sub



    Attached Images Attached Images   
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

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