Results 1 to 3 of 3

Thread: Class Properties

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jul 1999
    Posts
    207

    Class Properties

    Ok,

    Here's the question.

    Do you know when you are working with VB.net and you are using a .net framework class and the little window pops up telling you what your opptions are (for instance when you type Dim j As New System.Net.Sockets.Socket(". Well I am just wonder if anyone knows how to do this with user developed classes. For example I am writing a class and it would be nice if it came up with serveral different options like that.

    Jeremy

  2. #2
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    That is just part of the IDEs intellisense and it will pop up on your classes too. The descriptive sentence at the bottom can only be done with extra tools or on C#, but the parameters of the method or what not will show up. When there is more than one it just means it is an overloaded method.

    VB Code:
    1. 'if you had multiple methods or even just one like this
    2. Public Sub New(ByVal name as string)
    3.  
    4. Public Sub New(ByVal name as string, ByVal rank as string)
    5.  
    6. 'when you go to use this class it will show the parameters
    7. Dim obj as New MyClass('intellisense show stuff here

  3. #3
    Fanatic Member rudvs2's Avatar
    Join Date
    Mar 2001
    Location
    NZ
    Posts
    935
    To get tool tip descriptions on your class's intellisense go to gotdotnet.com in the vb.net section is a utility that lets you create the xml document that stores this information for the ide.

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