473,321 Members | 1,708 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,321 software developers and data experts.

XML Comments and ComponentModel.Description attribute

CMM
In VS2005 / VB.NET, do you still have to spell out the
ComponentModel.Description attribute when you want properties of a custom
control to have description text in the Property Editor?... or can you use
XML Comments take the place of this? If you still need to specify both, why
can't the XML Comments shortcut (''') automatically pick up the
ComponentModel.Description already defined for the Property....

With the VBCommenter power toy add-in in VS2003 you could type ''' and the
XML Comments would automatically be filled in with the value of
ComponentModel.Description attribute already specified for the property.

If so, this yet another "little thing" where VS2005 is completely
half-assed. I swear the more I use this thing the more I'm infuriated by its
total brainlessness. I hope I'm wrong. I really hope I'm wrong.
Jan 31 '06 #1
2 2940
"CMM" <cm*@nospam.com> schrieb:
In VS2005 / VB.NET, do you still have to spell out the
ComponentModel.Description attribute when you want properties of a custom
control to have description text in the Property Editor?... or can you use
XML Comments take the place of this?


You have to specify both, but importing the 'System.ComponentModel'
namespace will make your code more readable:

\\\
Imports System.ComponentModel ' Alternatively use a project-wide import.
....
<Description("...")> _
Public Property...
///

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

Jan 31 '06 #2
CMM
I can't believe the VBCommenter power toy add-in in VS2003 is better than
the functionality in the super-hyped up VS2005! That says a lot.
Anyway... I came up with a very nice time-saver by creating a code snippet
for it and assigning it a "cmprop + tab" as a shortcut key (using the VB
Code Snipper Editor...
http://msdn.microsoft.com/vbasic/dow...nippeteditor/).
''' <summary>
''' $description$
''' </summary>
<ComponentModel.Description("$description$")> _
"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:uT**************@TK2MSFTNGP09.phx.gbl...
"CMM" <cm*@nospam.com> schrieb:
In VS2005 / VB.NET, do you still have to spell out the
ComponentModel.Description attribute when you want properties of a custom
control to have description text in the Property Editor?... or can you
use XML Comments take the place of this?


You have to specify both, but importing the 'System.ComponentModel'
namespace will make your code more readable:

\\\
Imports System.ComponentModel ' Alternatively use a project-wide
import.
...
<Description("...")> _
Public Property...
///

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

Jan 31 '06 #3

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

Similar topics

16
by: steven | last post by:
http://www.nenya.be/41229-1/cal.htm (Only the calendar navigation links work)
5
by: David N | last post by:
All, I created a control that have the following property defined: private bool autoSearch My control is compiled and created fine. But, after adding the control to my form, I noticed...
2
by: Bob | last post by:
I don't know if this is doable but sure very helpful. Is there a way to make the XML comments or the Description attribute on the on the WS to show up in the proxy class generated by VS.NET. ...
4
by: Rotkiv Namego | last post by:
Hi I have a maybe simple question, but anyway, when I use the.Net framework there are lots of very usfull comments while seting properties to objects. (the little yellow box on the secound...
0
by: Control Freq | last post by:
Dear all, Below is my first C# program. Please be gentle with me. I was asked to produce a simple Windows Forms program to save Key/Value pairs, along with the a couple of sorting choices. ...
2
by: TCook | last post by:
Hey All, I have added my XML comments to my VB.Net solution and from within VS2005 they show up quite nicely in the Object Browser, etc. However, when the class library is referenced from a...
8
by: ismailc | last post by:
Hi, I would like to change the text color of (<xsl:value-of select="Description") onmouseover of image. the javascript works, it's just that i can seem to get the name correct <td>...
3
by: psycho | last post by:
I had created a class and added XML comments to its methods. Then I compiled it as a DLL and added its reference to my project. But when I type the names of its methods, the intellisense is not...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.