Results 1 to 6 of 6

Thread: tooltip for functions?

  1. #1

    Thread Starter
    l33t! MrPolite's Avatar
    Join Date
    Sep 2001
    Posts
    4,428

    tooltip for functions?

    Umm, in the intellisense thingie, when you hold the mouse on a sub or a function, it shows a little tooltip that describes what that function does.
    I'm just wondering if it's possible to add descriptions to functions, just like the way .NET classes have descriptions
    rate my posts if they help ya!
    Extract thumbnail without reading the whole image file: (C# - VB)
    Apply texture to bitmaps: (C# - VB)
    Extended console library: (VB)
    Save JPEG with a certain quality (image compression): (C# - VB )
    VB.NET to C# conversion tips!!

  2. #2
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    There is the 'System.ComponentModel.DescriptionAttribute
    ' class but I don't know if it works for the tooltips. It shows the description in the properties window though (mainly just controls).

    You use it like this:
    VB Code:
    1. Imports System.ComponentModel
    2.  
    3.     <Description("Removes an item from the collection by Index")> _
    4.     Public Sub Remove(ByVal Index As Integer)
    5.         _Col.Remove(Index)
    6.     End Sub

    I think in C# you can add description attributes into the code like xml.

  3. #3

  4. #4

    Thread Starter
    l33t! MrPolite's Avatar
    Join Date
    Sep 2001
    Posts
    4,428
    this sucks!!!! stupid microsoft doesnt support vb.net as well as C#!


    btw I dont get it, how did the other guy make the xml file? he doesnt describe it well (I;m talking about the second to the last thread)
    do I have to add the xml file to my class library? and then what?
    rate my posts if they help ya!
    Extract thumbnail without reading the whole image file: (C# - VB)
    Apply texture to bitmaps: (C# - VB)
    Extended console library: (VB)
    Save JPEG with a certain quality (image compression): (C# - VB )
    VB.NET to C# conversion tips!!

  5. #5
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    I guess he just made the xml file from scratch or got one from a C# program to show us. It didn't have much in the way of instructions. I saw a program that would do this for you for vb.net but now I can't find it again Well if you figure it out before me then let me know too. Thanks.

  6. #6

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