alexk Posted January 19, 2003 Posted January 19, 2003 I was create a little class with property and method. How can I add a short pop-up "note" to property or method like in original VB.NET methods and properties? See attachment picture for example. Thanks.untitled.bmp Quote
UCM Posted January 20, 2003 Posted January 20, 2003 FIrst you create a property then in an event, sub, or function, you can reference that property by using:Me. Try This: Public Class Form1 Inherits System.Windows.Forms.Form Private MyStrPropertySTORAGE As String Public Property MyStrProperty() As String Get ' The Get property procedure is called when the value ' of a property is retrieved. Return MyStrPropertySTORAGE End Get Set(ByVal Value As String) ' The Set property procedure is called when the value ' of a property is modified. ' The value to be assigned is passed in the argument to Set. MyStrPropertySTORAGE = Value End Set End Property Private MyIntPropertySTORAGE As String Public Property MyIntProperty() As String Get ' The Get property procedure is called when the value ' of a property is retrieved. Return MyIntPropertySTORAGE End Get Set(ByVal Value As String) ' The Set property procedure is called when the value ' of a property is modified. ' The value to be assigned is passed in the argument to Set. MyIntPropertySTORAGE = Value End Set End Property Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Me.MyStrProperty = "Text" ' This is a string property Me.MyIntProperty = 1024 ' This is a integer property End Sub End Class Quote UCM >-)
Moderators Robby Posted January 20, 2003 Moderators Posted January 20, 2003 I think that Alex is talking about the tooltip that appears next to a property or method in the dropdown list in the IDE. Quote Visit...Bassic Software
*Gurus* divil Posted January 20, 2003 *Gurus* Posted January 20, 2003 That is a C# feature, it gets those tooltips from the inline XML documentation that is part of the language spec. There is probably a tool that lets you do the same from VB.NET, but I don't know of one. Quote MVP, Visual Developer - .NET Now you see why evil will always triumph - because good is dumb. My free .NET Windows Forms Controls and Articles
alexk Posted January 20, 2003 Author Posted January 20, 2003 Yes, exactly. I'm talking about the tooltip that appears next to a method in the dropdown list in the IDE. Can anyone HELP me?! Quote
*Gurus* divil Posted January 20, 2003 *Gurus* Posted January 20, 2003 Did you miss my post? Quote MVP, Visual Developer - .NET Now you see why evil will always triumph - because good is dumb. My free .NET Windows Forms Controls and Articles
TechnoTone Posted February 5, 2003 Posted February 5, 2003 Does anyone know how to do this in VB.NET??? Just to reiterate, I want to assign a description to each of the properties/methods of my class so that when you're using the IDE you get a tooltip with the description, just like the existing .NET objects. Additionally, how can this be extended to include descriptions for method parameters too? Quote TT (*_*) There are 10 types of people in this world; those that understand binary and those that don't.
Cywizz Posted February 5, 2003 Posted February 5, 2003 URL posted by Wyrd in the VB.Net form a couple of days ago: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnvssamp/html/vbcs_xmlcomments.asp?frame=true (edit) mmmm I mean FORUM Quote Howzit??
TechnoTone Posted February 5, 2003 Posted February 5, 2003 Thanks. I thought I remembered seeing something along these lines a few days ago but I douldn't find it. I even remembered that it had the word "ToolTip" in the title but when I searched I couldn't find it. Turns out it was "ToolTips" with an "s".... DOH, so close. Quote TT (*_*) There are 10 types of people in this world; those that understand binary and those that don't.
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.