473,657 Members | 2,287 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Intellisense question

How can I create a method and attach a description to it so that if someone
instantiates my object and references the object.method a description of the
method shows up.... just like the vb methods do?

I have tried things like
imports system.componen tmodel

<Description("M y description")> _
public sub abc()

This still doesnt work.

Thanks
Nov 21 '05 #1
6 1031
You need to generate a XML documentation file. Since VB.NET 2002/2003 does
not have built-in support for this (C# does), you need to use some add-in
such VBCommenter:
http://www.gotdotnet.com/team/ide/he...Commenter.aspx

--
Best regards,

Carlos J. Quintero

MZ-Tools: Productivity add-ins for Visual Studio .NET, VB6, VB5 and VBA
You can code, design and document much faster.
Free resources for add-in developers:
http://www.mztools.com

"news.microsoft .com" <ms******@agris .com> escribió en el mensaje
news:uj******** ******@TK2MSFTN GP12.phx.gbl...
How can I create a method and attach a description to it so that if
someone instantiates my object and references the object.method a
description of the method shows up.... just like the vb methods do?

I have tried things like
imports system.componen tmodel

<Description("M y description")> _
public sub abc()

This still doesnt work.

Thanks

Nov 21 '05 #2
"news.microsoft .com" <ms******@agris .com> schrieb:
How can I create a method and attach a description to it so that if
someone instantiates my object and references the object.method a
description of the method shows up.... just like the vb methods do?


Adding IntelliSense tooltips, XML comments, and documentation
<URL:http://dotnet.mvps.org/dotnet/faqs/?id=tooltipsxml documentation&l ang=en>

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 21 '05 #3
"Herfried K. Wagner [MVP]" <hi************ ***@gmx.at> wrote in message
news:e8******** ******@TK2MSFTN GP15.phx.gbl...
"news.microsoft .com" <ms******@agris .com> schrieb:
How can I create a method and attach a description to it so that if
someone instantiates my object and references the object.method a
description of the method shows up.... just like the vb methods do?
Adding IntelliSense tooltips, XML comments, and documentation

<URL:http://dotnet.mvps.org/dotnet/faqs/?...tation&lang=en


Herfried,

How does the creation of these XML documents sit with [shared]
Assemblies that have to be "registered " into the Global Assembly
Cache? Should I need to [manually] copy the xml into the GAC's
shadow copy subdirectory for them to be "absorbed" correctly by
the 'Studio IDE?

TIA,
Phill W.
Nov 21 '05 #4
"Phill. W" <P.A.Ward@o-p-e-n-.-a-c-.-u-k> schrieb:
How does the creation of these XML documents sit with [shared]
Assemblies that have to be "registered " into the Global Assembly
Cache? Should I need to [manually] copy the xml into the GAC's
shadow copy subdirectory for them to be "absorbed" correctly by
the 'Studio IDE?


I have never tested that. Typically assemblies are not copied to the GAC
when developing.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 21 '05 #5
On Wed, 6 Jul 2005 21:38:28 +0200, Herfried K. Wagner [MVP] wrote:
"Phill. W" <P.A.Ward@o-p-e-n-.-a-c-.-u-k> schrieb:
How does the creation of these XML documents sit with [shared]
Assemblies that have to be "registered " into the Global Assembly
Cache? Should I need to [manually] copy the xml into the GAC's
shadow copy subdirectory for them to be "absorbed" correctly by
the 'Studio IDE?


I have never tested that. Typically assemblies are not copied to the GAC
when developing.


What if you are using a complex commercial library, or open source library,
in many projects? Copying it to the GAC would make sense, and you very well
might want Intellisense for it.
Nov 21 '05 #6
As Herfried said, assemblies are not copìed to the GAC during DEVELOPMENT.
The GAC is a deployment feature for final apps on the machines of clients,
not a development feature. While developing, your project has references to
shared assemblies outside the GAC, in some folder. For example, the .NET
Framework dlls are in the GAC (for final apps) and also in other folder,
such as C:\WINDOWS\Micr osoft.NET\Frame work\v1.1.4322, and the xml files are
in that folder, not in the GAC. In fact, the Add Reference dialog of VS.NET
does not show assemblies in the GAC, it shows assemblies in folders listed
in some special registry entries such as
HKEY_LOCAL_MACH INE\SOFTWARE\Mi crosoft\VisualS tudio\7.1\Assem blyFolders and
several others.
--
Best regards,

Carlos J. Quintero

MZ-Tools: Productivity add-ins for Visual Studio .NET, VB6, VB5 and VBA
You can code, design and document much faster.
Free resources for add-in developers:
http://www.mztools.com

"Ross Presser" <rp******@NOSPA Mgmail.com.inva lid> escribió en el mensaje
news:h7******** *************** *****@40tude.ne t...
On Wed, 6 Jul 2005 21:38:28 +0200, Herfried K. Wagner [MVP] wrote:
I have never tested that. Typically assemblies are not copied to the GAC
when developing.


What if you are using a complex commercial library, or open source
library,
in many projects? Copying it to the GAC would make sense, and you very
well
might want Intellisense for it.

Nov 21 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
2583
by: Nick Kafenzakis | last post by:
Hi, I am thinking about creating some custom server controls in Visual Studio .NET 2003 using VB.NET. One thing I am wondering about is how I can get the control to show up in the IDE....for example right now when I hit '<' i get a list of controls like <asp:(somecontrols)>. I was wondering if there is a way so that when i hit '<' I will also get a list like <mycompany:(mycustomcontrols)>. Any pointers or documentation would be...
1
1656
by: dan | last post by:
I am working in C#. I want to know how I can get the extras to show up on the intellisense mouseovers. I get a name and type of the property like private string textbox.font But I do not get the extra description like many of the built in controls. Where is this stored and how do I modify it. //does not do it. And I already have it showing up in the property window but I want to be able to mouse over a property or method in the...
1
1710
by: Greg McIntire | last post by:
Hello all, I have, what I hope, is a relatively quick question. I've made a shared add-in in VS.NET 2003 to be used in Excel XP. The add-in exposes an optimization process that can be conducted from Excel VBA (currently have no desire to make a more formal UI).
0
828
by: cody | last post by:
if i have an enum say Color and i type Color:: intellisense pops up with a list of the members of this enum. but the problem is when i write Color::Red for example i get an error. is this a bug in intellisense? i have a second one. is there a reason why intellisense shows me the private members of a class too? does it make sense to expose the private variables? --
9
2677
by: Ulf Lindback | last post by:
Hi! We have an application surveillance product with a number of API's for different languages; one of them is a C API. Now I wonder how we can supply intellisense to our Visual Studio.Net (native C/C++) users (preferably both VS 7.0 and 7.1). I would like to have something like the parameter info you get for e.g. printf when you enter the opening parenthesis, printf(
6
1742
by: MattB | last post by:
Hi all, not exactly a asp.net question, but I'm sure you people know this one. I'm just not sure what to look for in help, because it's sure to be in there too. I'm creating a reusable class library and I want to be able to add usage remarks that would show up in Intellisense when the library was being called from elsewhere. How does one add these comments? I'm taking about the stuff that pops in Intellisense that says stuff like "Gets...
3
4010
by: =?Utf-8?B?SmltIFJvZGdlcnM=?= | last post by:
It's perhaps not the end of the World, but I find it annoying that I lose IntelliSense when I reference Subs and Functions I have moved to an #Included file. Does anyone know of a reasonable way to restore the IntelliSense feature in this case? Thanks for your thoughts... Jim Rodgers
5
3238
by: wal | last post by:
Hello, I'm using __declspec(property) to access get/set methods as properties (like in C# and VB.NET). Now, the problem is that both the property name and the get/set methods show in the intellisense list. Is there anyway to remove the names of the get/set methods from the intellisense list? Here's an example, I have two methods, one is a get method with the name getText and another set method with the name setText, the name of the...
4
2435
by: Robot | last post by:
Hi all, My IntelliSense in VS2005 hasn't been working with WTL 8 classes. The project compiles fine but whenever I type SomeWTLClass. or SomeWTLClass-it does not work. The status bar changes to: IntelliSense: 'Type of expression to the left of . or -is not class, struct, or union' (see 'Troubleshooting Intellisense in C++ Projects'
11
2207
by: kimiraikkonen | last post by:
Hi there, I needed to use MouseOver event on Webbrowser which is NOT provided by webbrowser control natively(what a disappointment), so i decided to go with another route to simulate this like: //////////////////////////////////////////////// Public Sub DisplayHyperlinks(ByVal sender As Object, ByVal e As System.Windows.Forms.HtmlElementEventArgs)
0
8407
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8319
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8837
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8612
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
5638
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4329
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2739
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1969
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1732
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.