Show A Custom Comment?
Apr 17, 2010
I 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]....
View 7 Replies
ADVERTISEMENT
Sep 2, 2009
When a request is 404 in ASP.NET on IIS 7 i want a custom error page to be displayed. The URL in the address bar should not change, so no redirect. How can i do this?
View 3 Replies
Oct 22, 2010
I have a form where I have created a custom property, DataEntryRole, and set its Browsable attribute to True, as shown:
<Browsable(True)> _
Public Property DataEntryRole() As UserRole.PossibleRoles
Get
Return mDataEntryRole
End Get
[Code]...
When I view the designer for my form, DataEntryRole doesn't appear in the property box. I assume that it should appear if I were to create another form that inherited from this base form, but that's not what I want. I want this property to show up in my current form.
View 2 Replies
Sep 19, 2011
I'm trying to show a custom contextmenustrip on my datagridview and it works fine except when the cell is being being edited. Then it shows the default windows contextmenustrip with copy/cut/..Is there a way to overwrite the DataGridViewTextBoxCell contextmenustrip or disable it? The solution from Disable DataGridView System ContextMenu does'nt work for me.
Private Sub DataGridView1_MouseDown(ByVal sender As System.Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles DocCostGroupDetsDataGridView.MouseDown
If e.Button = Windows.Forms.MouseButtons.Right Then
_CustomContextMenuStrip.fGetContextMenu()
[Code]...
View 1 Replies
Dec 6, 2011
I have the following code in "Custom Code" in SSRS 2008. It works fine in VS2008 but it won't run on the server:
Public Shared Function Ns(ByVal num as Object, ByVal def as Object) as Object
if IsNothing(num) OrElse Not IsNumeric(num) OrElse System.Double.IsNaN(num) then
return def
[code].....
View 1 Replies
Jun 22, 2010
What is comment in VB.Net and how to comment.
View 4 Replies
May 23, 2012
I 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]...
View 5 Replies
Oct 22, 2010
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]....
View 3 Replies
Feb 18, 2006
nice east one, how can i do a multiline comment ?
View 4 Replies
Jul 25, 2006
Is there a multiline comment in VB.NET besides '?
View 11 Replies
Aug 10, 2009
How 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].....
View 1 Replies
Nov 17, 2010
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 Replies
Mar 31, 2009
I 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 Replies
Jun 16, 2011
When 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 Replies
Mar 25, 2009
I 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 Replies
Apr 24, 2010
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.
View 4 Replies
Feb 4, 2010
Does anyone know why there's no block comment capability in VB .NET? (Unless there really is
View 4 Replies
Jul 13, 2009
I saw the video from microsoft teaching the techique of programming and found out they can comment multiple line and the same time.
View 2 Replies
May 18, 2010
What 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?
View 1 Replies
Dec 15, 2009
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 Replies
Feb 6, 2011
I 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 Replies
Feb 4, 2009
Is 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 Replies
Aug 26, 2010
I 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 Replies
Jul 7, 2011
We'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 Replies
May 16, 2010
I'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 Replies
May 16, 2010
In 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 Replies
Jul 26, 2009
how make comment maker character for whole paragraph
View 7 Replies
May 2, 2009
According 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]...
View 3 Replies
Jun 30, 2011
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.
View 3 Replies
Jul 1, 2011
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?
View 1 Replies