How To Comment
Jun 22, 2010What is comment in VB.Net and how to comment.
View 4 RepliesWhat is comment in VB.Net and how to comment.
View 4 RepliesI found something weird in VB2010 a few minutes ago. The problem is making a variable called "rem". I searched on Google and found that "REM" is a comment, similar to single apostrophe '. Why is this the current behavior? Why not stick to ' only? Sincerely yours,
[Code]...
If we need to comment more than one line we'll use the following syntax in C#.NET.
/* this.comboBox1 = new System.Windows.Forms.ComboBox();
this.button1 = new System.Windows.Forms.Button();
this.dataGridView1 = new System.Windows.Forms.DataGridView();
this.textBox1 = new System.Windows.Forms.TextBox();
[code]....
nice east one, how can i do a multiline comment ?
View 4 RepliesIs there a multiline comment in VB.NET besides '?
View 11 RepliesHow do you retrieve a comment from an XMLElement using Linq in VB? For example:
<MyXML>
<event type="MyEvent" uid="3">
<start>2009-02-01T12:00:00</start>
[code].....
I am developing an application using vb.net which generates an xml file from Datagridview contents at the end. the datasource for DGVW is a datatable and i generate the xml file using method[code]....
View 2 RepliesI have an XML document that I am deserializing (VB .NET 3.5 Framework), changing some values, and the serializing again. The original document has several XML Comments in it. When I go through all the deserialize/serialize all of the comments are lost. Is there a way to preserve the comments? If not, is there a way to add comments on serialization without having to walk through with the writer and manually add all of the comments back in the appropriate place?
View 1 RepliesWhen reading and writing data to an XML file, in XML code, through a VB application, how does one go about commenting out a specific XML code line? From what I've gathered the original <!-- and --> tags aren't compatible. So what would be the VB alternative? Or is it just not possible to comment out a line of XML code using XML code through VB?
View 5 RepliesI have read that it is possible, but how do I use them in VS2008? I would like to start commenting class's commands and properties, but I can't find how to.[URL]
View 1 RepliesI would like to know how to show a customized comment everytime i declare a class, function, or sub routine. I just dont want to copy and paste the summary comments everytime i declare a class, function, or sub routine.
'''<summary>
'''Class Name:
'''Programmer:
'''Description:
[code]....
Im working on a comment control. I mean a control, that has an input area for text and images and a line or an arrow for pointing to something. It should a bit look like the comment control in Adobe Acrobat.
My first idea is to put four standard controls together:
1) a RichTextBox to hold text and images
2) a Panel to hold the RichTextBox and some GrabRectangles around it (the Panel needs to be a bit greater than the RTB for the GrabRectangles)
3) a little Panel (3x3 or 4x4 Pixel) to hold another GrabRectangle for placing and resizing the line (the arrow)
4) a LineShape for pointing (its startpoint on the RTB and endpoint on the little Panel)
I have added a drawing.My question is: what can I use to put these controls together? Another Panel would probably do a good job. But it would cover a lot of additional area around the contained controls and hide other controls, so that they dont get mouse clicks.
Does anyone know why there's no block comment capability in VB .NET? (Unless there really is
View 4 RepliesI saw the video from microsoft teaching the techique of programming and found out they can comment multiple line and the same time.
View 2 RepliesWhat is the Microsoft Standard for Code Commenting
1. In case of Class 'Class header Comments
2. Function Comments
3. Subroutine Comments
There are different ways to comments like XML Documentation using ///
CODE:
Which Stnd should follow? May be something else other than above?
i know in java and other nice languages it's possible to comment out a bunch of lines at the same time. is it possible to do this in vb.net?
View 5 RepliesI have just comment and remove comment with the key combination ctrl + k, then ctrl + c and ctrl + k, then ctrl + u. But I think, I have pressed one time an another key. And I get the small mark in the code. What is this, and how can I get rid of it?[URL]..
View 3 RepliesIs there any SHORCUT for multi lines commenting in vb.net .. Altouhgh i know there is an option in toolbar for multilines comments but i want to know a keyboard shorcut for it...
View 5 RepliesI would like to build an application with visual basic.NET ( i currently have visual studio 2010) which posts a comment from my application to the remote website.On my VB form :i have 4 textboxes ( name, email , site address , and the comment text)and one submit button.on the remote site: 4 texts and 1 submit button !! same fields as my VB form.anyway what i want to do is to just post a comment from my vb application to the site.
View 2 RepliesWe've created a little plugin to add a block of xml comment and create a try-catch to a function. (we simply add this to each and every function we write).But with the latest devexpress update I'm having a problem with the following code.[code].........
View 1 RepliesI've been working a lot in VS2010 express and notice when you highlite code and right click you can comment and uncomment it. Very handy.I've just started using VS 2010 Professional at work and that feature is not there.Why can't you do it on the professional version? (Or is it just missing on my machine?)
View 4 RepliesIn order to have a description for a property of a custom control to be shown in the Property Grid and also in the Object Browser, should I use a Description Attribute and also a Comment? This appears to be redundant, is there a way that the Object Browser displays the Property Description?
View 2 Replieshow make comment maker character for whole paragraph
View 7 RepliesAccording to conventional programming, how is it to properly comment using the '''<summary> feature built into Visual Basic? Would I have to use the part that says
[Code]...
I have the following string:
<TD><!-- 1.91 -->6949<!-- 9.11 --></TD>
I want to end up with:
<TD>6949/TD>
But instead I end up with just the tags and no information:
<TD></TD>
This is the regular expression I am using:
RegEx.Replace("<TD><!-- 1.91 -->6949<!-- 9.11 --></TD>","<!--.*-->","")
How to keep the numbers and remove just what the comments.
When you create an XML comment in C# and collapse it you only see:
<Summary>...
But in VB you could potentially see
Initializes the fubble to the watzer. This is actually the second line.
Having that line over your code can introduce lots of unwanted noise when trying to debug a class. Is there any way to turn off xml comment previews for VB?
i want to create a listbox in which a user introduces a name (Ex Item1) I also want to user to insert a comment in the shape of a string ( Ex. Item1 was added yesterday) and link it somehow to his Item1.
Once the program starts the user should be able to insert an item in the listbox with a comment; and once he selects the item i want a MsgBox appearing with the comment of the specific Item, that he also inserted.
Think something like a book library using a listbox.You go and browse books in a listbox and once you click on them they display on the right the cover of the book, the authors, date, ratings etc.I just need to know how to link a ListBoxItem to do something, and i want the Library administrator to do it in runtime.The MsgBox example should do it for me.
I just downloaded the trial for this application and it doesn't seem to work. I went through the Quick Setup guide and it all looked great. Now when I place my cursor on a member of any type and press Ctrl+Shift+D it does nothing. I placed it on top, inside, etc... Nothing. If I press Ctrl+Shift+A (twice) on top of the member it tells me to place it "in the line of the form MyType myVariable;". I'm not quite sure what this means unless it's referring to C# but this project is VB.NET which it doesn't seem to recognize. Anyone else have this issue? I was hoping it would make things easier since I've read that it can document an entire document rather than having to member by member. Using VS 2010 Premium.
View 1 RepliesI need to find out if the TextBox control contains a HTML comment but without closing tag. e.g. <!-- content here notice that it's possible that they can enter more than one comments so all of the comments have their closing tag except one (or even more).
I just need to find if there is ONE or more html comments without closing tag.
how to get the user input in comment textbox and insert into my database and then retrieve the data to output in another webform.
View 3 Replies