|
-
Oct 4th, 2010, 08:41 AM
#1
[RESOLVED] What are these comments ?
While reading the code posted by paul, I found these comments.
vb Code:
''' <summary>
''' timer
''' </summary>
''' <param name="sender"></param>
''' <param name="e"></param>
''' <remarks>interval = 100ms</remarks>
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
Panel1.AutoScrollPosition = New Point(Panel1.AutoScrollPosition.X, Math.Abs(Panel1.AutoScrollPosition.Y) + 1)
End Sub
What is the specialty of it ? And what is it used for ?
If my post was helpful to you, then express your gratitude using Rate this Post. 
And if your problem is SOLVED, then please Mark the Thread as RESOLVED (see it in action - video)
My system: AMD FX 6100, Gigabyte Motherboard, 8 GB Crossair Vengance, Cooler Master 450W Thunder PSU, 1.4 TB HDD, 18.5" TFT(Wide), Antec V1 Cabinet
Social Group: VBForums - Developers from India
Skills: PHP, MySQL, jQuery, VB.Net, Photoshop, CodeIgniter, Bootstrap,...
-
Oct 4th, 2010, 08:46 AM
#2
Re: What are these comments ?
That comment block is inserted by Visual Studio. You can emit them to an XML file that can be used to generate a help document. Also, you'll notice that once that kind of comment block is included ahead of a function declaration that Intellisense will show the comments when making a call to the affected function.
-Max
The name's "Peck" .... "Max Peck"
"If you think it's expensive to hire a professional to do the job, wait until you hire an amateur." - Red Adair
-
Oct 4th, 2010, 08:55 AM
#3
Re: What are these comments ?
Thanks..
If my post was helpful to you, then express your gratitude using Rate this Post. 
And if your problem is SOLVED, then please Mark the Thread as RESOLVED (see it in action - video)
My system: AMD FX 6100, Gigabyte Motherboard, 8 GB Crossair Vengance, Cooler Master 450W Thunder PSU, 1.4 TB HDD, 18.5" TFT(Wide), Antec V1 Cabinet
Social Group: VBForums - Developers from India
Skills: PHP, MySQL, jQuery, VB.Net, Photoshop, CodeIgniter, Bootstrap,...
-
Oct 4th, 2010, 03:27 PM
#4
Re: [RESOLVED] What are these comments ?
As an additional note, you insert this XML into your code by right-clicking on the method name and selecting 'Insert comment'. It'll add the XML code for you to describe the function and its parameters.
"Ok, my response to that is pending a Google search" - Bucky Katt.
"There are two types of people in the world: Those who can extrapolate from incomplete data sets." - Unk.
"Before you can 'think outside the box' you need to understand where the box is."
-
Oct 4th, 2010, 09:48 PM
#5
Re: [RESOLVED] What are these comments ?
 Originally Posted by SJWhiteley
As an additional note, you insert this XML into your code by right-clicking on the method name and selecting 'Insert comment'. It'll add the XML code for you to describe the function and its parameters.
Thanks...
If my post was helpful to you, then express your gratitude using Rate this Post. 
And if your problem is SOLVED, then please Mark the Thread as RESOLVED (see it in action - video)
My system: AMD FX 6100, Gigabyte Motherboard, 8 GB Crossair Vengance, Cooler Master 450W Thunder PSU, 1.4 TB HDD, 18.5" TFT(Wide), Antec V1 Cabinet
Social Group: VBForums - Developers from India
Skills: PHP, MySQL, jQuery, VB.Net, Photoshop, CodeIgniter, Bootstrap,...
-
Oct 4th, 2010, 10:26 PM
#6
Re: [RESOLVED] What are these comments ?
 Originally Posted by SJWhiteley
As an additional note, you insert this XML into your code by right-clicking on the method name and selecting 'Insert comment'. It'll add the XML code for you to describe the function and its parameters.
I didn't even know that. I, and I think most people, type three single quotes on the line before the method declaration and it has the same effect. I guess the better option depends on whether you're a mouse person or a keyboard person.
-
Oct 5th, 2010, 07:18 AM
#7
Re: [RESOLVED] What are these comments ?
 Originally Posted by jmcilhinney
I didn't even know that. I, and I think most people, type three single quotes on the line before the method declaration and it has the same effect. I guess the better option depends on whether you're a mouse person or a keyboard person.
I found about the three-quotes by accident Yes, I'm very mouse-heavy, so do have to spend a lot (relative term) of time configuring keyboard navigation in applications so as to not annoy the keyboard surfers...
"Ok, my response to that is pending a Google search" - Bucky Katt.
"There are two types of people in the world: Those who can extrapolate from incomplete data sets." - Unk.
"Before you can 'think outside the box' you need to understand where the box is."
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|