Comment Multiple Lines Of Code/block Of Code In VB?

Jul 1, 2009

How to comment multiple lines of code/block of code in VB?


Comment Out Lines Of XML Code Through VB?

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 View Related

Shortcut For Multiple Lines Comment?

Feb 4, 2009

Is there any SHORCUT for multi lines commenting in .. 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 View Related

Comment A Code Visual Studio Code Snippet?

Jul 6, 2011

How do I add a comment to code snippet in Visual Studio?

View 18 Replies View Related

Code For Drawing Multiple Lines On Form?

Jun 5, 2011

I want to draw three straight lines on a form. if the following code is correct:

Private Sub Form1_Paint(ByVal sender As Object, ByVal e As System.Windows.Forms.PaintEventArgs) Handles Me.Paint
Dim Line1 As System.Drawing.Graphics


Can I use only one variable (Line1) to draw three straight lines?

View 2 Replies View Related

How To Hard Code Multiple Lines In A Richtextbox

May 18, 2010

I am attempting to hard code a richtextbox that has multiline characters upon the Load_Event. However, whenever I use the "&controlchars.newline _ " I get a syntax error and end of statement expected error.


View 3 Replies View Related

Forums Code Addin Alternative To Insert Code Block

Feb 23, 2010

There has been an Visual Studio addin created by Heslacher based on code by JohnWein which allows one to copy code in Visual Studio and paste it as HTML code block here in the forums.urls...

View 10 Replies View Related

Microsoft - Code Comment Structure

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 ///


Which Stnd should follow? May be something else other than above?

View 1 Replies View Related

Possible To Comment Out More Than 1 Line Of Code At A Time?

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

View 5 Replies View Related

Excel Vba - Can The Lines Of Code Be Reduced In This .net Code

Jul 26, 2011

I have the following code, my employer wants me to reduce the lines of code to do the job.

Private Function getClientSheetNames(Optional ByVal type As String = "all") As List(Of String)
If type = "extra" Then
Return clientExtraSheetNames
End If


I am not able to make out how can I cut the lines and have the same functionality !Are there any construct that can reduce the loc by better implementation ?Can I have a new function to be called from getClientSheetNames and getDevSheetNames that will can implement code resue ?Can I introduce polymorphism in a possible new function ?

View 1 Replies View Related

Reading Multiple Lines Of Code And Storing Them In "Records"?

Jan 15, 2012

I'm Rather new to coding, and It seems like I skipped some of the basics, and jumped in the deep end.I'm having a couple of problems, as I have an ordinary text file called "Orders", and this file stores Orders, placed by users of my program.The Users write to the Orders.txt file, 5 lines per Order, For Example :

Item Name
Item Quantity
UserName (Of user)


View 4 Replies View Related

Checking The Code Line By Line And Found That The Code Does Not Enter The IF Block?

Jan 15, 2012

I am using the given code to copy my database works like a charm in debug mode but as soon as I create a setup, it stops working. The error is

"Database Detach Failed"

I tried checking the code line by line and found that the code does not enter the IF block.I have no idea why.

Public Sub bk()
Dim strDatabasePath As String = My.Computer.FileSystem.CombinePath(My.Application.Info.DirectoryPath, "LIC.mdf")[code].....

View 2 Replies View Related

Why There's No Block Comment Capability

Feb 4, 2010

Does anyone know why there's no block comment capability in VB .NET? (Unless there really is

View 4 Replies View Related

Add A Block Of Xml Comment And Create A Try-catch To A Function?

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 View Related

Get And Set Assembly Code Block?

Apr 23, 2009

I want to get a 48 byte block of assembly code from the memory, save that code in a global array or whatever, then I wanna NOP everything from 0xF to 0x16, and write that into the memory, and then later I wanna use the global block to set it back, how can this be achieved in VB.NET?

View 4 Replies View Related

Repeat A Block Of Code?

Feb 25, 2011

now if i've written a code, and then wrote that if a certain condition presents then repeat that code again including that if condition, so what is the code for this?

View 3 Replies View Related

What Tag To Use For Posting Code Block

Aug 13, 2010

I have a simple question on posting to this forum: what tag to use for a code block?

View 4 Replies View Related

Converting A String To Block Code

Apr 13, 2009

I was wondering, is their any way to change a string into a line of math code. I was working on a graphing calculator project and am having trouble splicing up everything into variables and coefficient and operators. Example, having this block of code work


View 2 Replies View Related

Find C# Style Code Block?

Apr 14, 2009

I have a script file which uses code similar to the C# language, using { and } braces to start and close 'blocks' of code. Note that blocks can be nested.[code]...

Is it possible to use regular expressions to parse the code and return the name of each block separately? So in the above example, it should return block1, block2 and block3 but NOT "block 2 contains" or "and another" (no nested blocks).

View 10 Replies View Related

Select Case Block W/code

Nov 24, 2011

'This program is to ask for input from a customer as to the type of lift ticket desired, whether it will be for a half 'day or full day and the total number of days desired. It will then calculate the total ticket price plus a slope 'charge of $10.00, a 10% sales tax will be added to the total of both the price and charge.'The checkboxes  were designed to order one type of ticket at a time, when one box is clicked the 'other checkbox dissappears. Clicking the box again resets them both to visible.[code]

View 16 Replies View Related

Stopping While Executing A Block Of Code

Oct 10, 2010

I'm trying to replace text using this method:

Add each characted to a String list (List(Of String)), execute the replace function for every type of character (for example: Text = Text.Replace("A", "0AA") Text = Text.Replace("a", "1AB")), but there's a problem: it replaces the text, but it replaces those replaced characters too, so when I replace "A", it will result something like this: "0AAB AAA 0AB"... (a long text)), and then add the characters to the result string

how make the application stop and start the replacing of the next character

I'm trying to use this code block:

Dim ReturnedString As String = GivenText
Dim ListToEncode As New List(Of String)
Dim curr As Integer = 0


View 16 Replies View Related

VS 2005 Change Block Of Code In VS.Net?

May 6, 2009

I'm wondering, is there a utility out there that will let us select a block of code and be able to replace it?

If there is none then I would want an idea on how can this be done so I could make a small utility for this task.

View 4 Replies View Related

VS 2008 Block Of Code In An Application

Oct 2, 2009

I have a block of code in an application I have written. I have tried two different variations.Below are examples of the method I used: [code]
The second example adds only three more lines of code. Yet, the app would run at about 10% of the speed as it would in the first sample.

View 9 Replies View Related

VS 2008 Improve On Block Of Code?

Jun 13, 2009

I have this block of code that splits txt/csv files. It is working just fine but its a but "ghetto"


View 2 Replies View Related

C# - .NET Will Stop Debugging Run The Code In The Finally Block?

Jun 18, 2012

Well, I've read (and learned) that the finally block doesn't always execute its code (even apart from pulling the plug).FYI For more information, see try catch finally question


View 1 Replies View Related

Default Block Of Code When Implementing An Interface?

Feb 26, 2010

I have an interface that I've defined and am working through a bunch classes that will implement it. I'm noticing that in 95% of the implementations, I'm only changing a few lines of the code, so I'd like to know if it's possible to have my IDE generate a block of code inside of a method upon implementation, much the same as implementing IDisposable.not mark my posts as answered. It is extremely rude. You have no idea if you've answered my question.I WILL come back and mark the ones that are answers, as answers.

View 7 Replies View Related

Feature Request: New Code Block Statement?

Dec 22, 2009

It's just before while I found that expression (see my signature) is possible, so this request is not about what 'I am missing', but what I can think of. It would be nice to have named sections of code in visualbasic, which would replaced almost everything you can miss about GoTo. Imagine this:

Section Compression
For Each item ...
If Not item IsV...


View 4 Replies View Related

Find The Parent Window With This Block Of Code?

Oct 15, 2008

i am using vb2008: now i can find the parent window with this block of code

Private Sub Button11_Click_2(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button11.Click
Dim theHandle As IntPtr
theHandle = FindWindow(Nothing, TextBox9.Text)


i do know how to use sendkeys,  but if i use that  and click on something else while i send the keys it picks up that window and trys to send the keys there  thats what i dont wantnow using the top block of code along with this module  how can i get the childwindow with focus on the "Richcntl" box to send text to itin a diffent click button:in this block:

Private Sub Button13_Click_1(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button13.Click
End Sub

View 2 Replies View Related

Know The Code To Address Logical Block 0 Of A Disk?

Feb 25, 2012

Does anyone know the code to address Logical Block 0 of a disk? This is my dump of block 0 of a multipartition disk.


View 15 Replies View Related

Skip A Code Block When Synclock Is Active?

Nov 3, 2009

Is it possible to skip a code block when a synclock is active?

For instance:

A object of class Bicycle is used by thread 1 and has a synclock on it.

Then thread 2 comes along and needs to know if the lights of the bike are working. But if there is a synclock active then thread 2 just forgets about checking the lights and goes to make a delicious chocolate pie.

View 2 Replies View Related

VS 2010 : Rename A Minimized Block Of Code?

May 11, 2012

I minimize a block of code, and instead of the text inside the rectangle being "..." I need to write smth of my own. I knew how to do it some long time ago, but I've forgotten it now.

View 6 Replies View Related

What Sub/Function/Block Of Code Produced Error

Mar 2, 2010

I'm creating some software in visual basic 2005 .Net. My software keeps a log file. If the applications encounters an error, it writes to this log file. Is there a way I can easily produce what sub, function, or block of code that produced the error?


Sub MessageUser()


Since msgbox is spelled incorrectly this will produce an error. I want to know what sub caused the error, in this case MessageUser.

View 4 Replies View Related

C# - File Header Comment At The Start Of Every Human-created Code File?

Mar 11, 2011

I'm going through All-In-One Code Framework Coding Standards document and one of the recommendations is to add a file header comment at the start of every human-created code file. This is the first time I've seen such a recommendation and to me it's just an unnecessary and ugly clutter but I'm wondering if someone could explain why M$ recommends this?


View 6 Replies View Related

Write This Block Of Code That Parses A Delimited String Into An Object?

May 8, 2009

Is there a more elegant way to structure the following code, which takes a comma delimited string containing certain values in specific positions and assigns the values to the properties of an object?[code]...

View 5 Replies View Related

What Is These Two Lines Of Code Saying

Mar 8, 2011

Seems begineer but i really do not understand what these lines of code saying, since I'm kinda like newbie in datatable and dataview or such stuff! [code]).DefaultView.Count = 0 Then EncodeToText will encoed the text given from DESCRIPTION field in the database and convert it to string. So it is filtering it but only certain description fields, how ever by some strange reasons that second line is not working properly.

View 1 Replies View Related

Change A Few Lines Of Code From CS.NET To .NET?

Mar 23, 2011

Basically I'm trying convert the following....

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;


View 3 Replies View Related

Converting C# To Vb 3 Lines Of Code?

Jan 2, 2012

i'm making a console program that consults a website of my work but it uses https and has a Untrusted certificate so i get this error: This Connection is Untrusted i did some research on the internet about this issue and come up with this code

//for testing purpose only, accept any dodgy certificate. public static bool ValidateServerCertificate(object sender, X509Certificate certificate, X509Chain chain, SslPolicyErrors sslPolicyErrors)


View 6 Replies View Related

Entering Last And First Name With Only 2 Lines Of Code?

Feb 5, 2012

I am a beginner trying to create a console program that lets the user enter a last name, then a first name with only 2 lines of code. The program should then display the first name followed by the last name.

I know how to do this, just not in 2 lines of code.

View 9 Replies View Related

Lines Of Code In VB Project

Aug 7, 2009

What is the easiest/simplest way of finding out the number of lines in your VB project?

View 4 Replies View Related

Splitting Code Into Two Lines?

Apr 12, 2010

I have a long line of code and I would like to split it into two lines. I've tried using , _ and & _ but they did not work.

Here is the
If c < 1 Or c > 9 Or a = c Or b = c Or a = b Or occupied(b) <> occupiedEnum.empty Or occupied(c) <> occupiedEnum.empty Then

View 6 Replies View Related

Copyrights 2005-15, All rights reserved