473,385 Members | 1,606 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

How can I highlight and comment out a block....


..... of code so it will by bypassed for testing purposes?
How do I un comment it after I'm done?

This is easy in Delphi, how do I do it in vb.Net?
Nov 20 '05 #1
6 1266
Hey Piddley,

Ctrl-K Ctrl-U = Kwik Uncomment
Ctrl-K Ctrl-C = Kwik Comment

Nov 20 '05 #2
Fergus Cooney wrote:
Hey Piddley,

Ctrl-K Ctrl-U = Kwik Uncomment
Ctrl-K Ctrl-C = Kwik Comment


This is getting cool!
Nov 20 '05 #3
You can add those commands to a toolbar so you can click a button for the
same effect.
--
Joe Fallon

"nobody" <no*****@nonenetcom.net> wrote in message
news:V%*******************@newssvr31.news.prodigy. com...
Fergus Cooney wrote:
Hey Piddley,

Ctrl-K Ctrl-U = Kwik Uncomment
Ctrl-K Ctrl-C = Kwik Comment


This is getting cool!

Nov 20 '05 #4
* nobody <no*****@nonenetcom.net> scripsit:
.... of code so it will by bypassed for testing purposes?
How do I un comment it after I'm done?

This is easy in Delphi, how do I do it in vb.Net?


In addition to Fergus' reply: The commands for adding/removing comments
are available in the "Text Editor" toolbar too.

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
<http://www.mvps.org/dotnet>
Nov 20 '05 #5
Joe,
They are already on the "Text Editor" toolbar so you don't really need to
add them, just show the "Text Editor" toolbar.

Of course you can add them to a different toolbar if you choose.

Hope this helps
Jay

"Joe Fallon" <jf******@nospamtwcny.rr.com> wrote in message
news:Ou**************@TK2MSFTNGP09.phx.gbl...
You can add those commands to a toolbar so you can click a button for the
same effect.
--
Joe Fallon

"nobody" <no*****@nonenetcom.net> wrote in message
news:V%*******************@newssvr31.news.prodigy. com...
Fergus Cooney wrote:
Hey Piddley,

Ctrl-K Ctrl-U = Kwik Uncomment
Ctrl-K Ctrl-C = Kwik Comment


This is getting cool!


Nov 20 '05 #6
That too! ;-)

--
Joe Fallon

"Jay B. Harlow [MVP - Outlook]" <Ja********@email.msn.com> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
Joe,
They are already on the "Text Editor" toolbar so you don't really need to
add them, just show the "Text Editor" toolbar.

Of course you can add them to a different toolbar if you choose.

Hope this helps
Jay

"Joe Fallon" <jf******@nospamtwcny.rr.com> wrote in message
news:Ou**************@TK2MSFTNGP09.phx.gbl...
You can add those commands to a toolbar so you can click a button for the same effect.
--
Joe Fallon

"nobody" <no*****@nonenetcom.net> wrote in message
news:V%*******************@newssvr31.news.prodigy. com...
Fergus Cooney wrote:

> Hey Piddley,
>
> Ctrl-K Ctrl-U = Kwik Uncomment
> Ctrl-K Ctrl-C = Kwik Comment

This is getting cool!



Nov 20 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Xah Lee | last post by:
is there a syntax to comment out a block of code? i.e. like html's <!-- comment --> or perhaps put a marker so that all lines from there on are ignored? thanks. Xah xah@xahlee.org...
2
by: KP | last post by:
I want to automatically highlight parts of a webpage (make them standout from the rest of the contents). These parts could be as small as single image tags, and as large as complex tables, parts of...
15
by: 50295 | last post by:
Hi everyone, This one is better experienced than explained, so I'm including a code sample below. Please and save (as an html file) and view with NN or Firefox (or maybe even Mozilla), and then...
21
by: listaction | last post by:
Folks, I'm trying to implement a tabbed effect with CSS and HTML - no graphics. for some reason, i'm unable to control the width of the tabs. I've pasted the code below. Any help /...
19
by: diffuser78 | last post by:
Like in C we comment like /* Bunch of lines of code */ Should we use docstring """ """ Or there is something else too ?? Every help is appreciated.
39
by: polas | last post by:
Afternoon all. I was just wondering about this point - I have (generally) used // for commenting a single line in C, but from looking at code other people have written it seems many use /* */...
4
by: Andrew Poulos | last post by:
As a user tabs about a web page I want to highlight with a, say, 2 pixel solid yellow border the anchor that currently has focus. When the anchor loses focus the border is removed. The anchors...
3
by: Richard | last post by:
Again, new to DB2. Trying to do something I can do in Sybase ASE. In any Sybase SQL script I can use /* */ to comment out a block of code. In the DB2 9.0 SQL Reference Manual V1 it says: ...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.