To use this website fully, you first need to accept the use of cookies. By agreeing to the use of cookies you consent to the use of functional cookies. For more information read this page.

Comments in VB.NET

Commenting is a very useful way of reminding future programmers or the original programmer when they haven't programmed on the same project for a long time what a section of code does. Therefore, it is recommend to comment code while working on it.

Most commercially developed applications have been commented because a wide array of people will work on them.

Commenting code in VB.NET

In Visual Basic, a comment is represented by an apostrophe ('). The line starts with an apostrophe. This represents that a piece of text that should be ignored as a piece of code. A comment is not compiled by the compiler. The purpose of a comment is to inform the programmer what the line below or above does. It is only visible in the text editor.

VB.NET
'This is a comment in the code
Provide feedback on this page
Comments are sent via email to me.