By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,962 Members | 1,997 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,962 IT Pros & Developers. It's quick & easy.

Q: Multicomment

P: n/a
Hi

I'm sorry if I've asked this before but is there such a thing as a
multicomment in VB.Net e.g. /*.....*/ as used in C++?

It is very annoying to add a ' to all the lines I'm trying to ignore.

Geoff
Nov 21 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
"Geoff Jones" <no********@email.com> schrieb:
I'm sorry if I've asked this before but is there such a thing as a
multicomment in VB.Net e.g. /*.....*/ as used in C++?
No, gladly there is no such comment syntax.
It is very annoying to add a ' to all the lines I'm trying to ignore.


There are shortcuts/toolbar buttons for commenting blocks of code:

Commenting:
Ctrl+K Ctrl+C
Uncommenting:
Ctrl+K Ctrl+U

.... on my German version of VS.NET 2003.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
Nov 21 '05 #2

P: n/a
No. But there is a toolbar button on the Text Editor Toolbar that will
comment out selected code and also a keyboard shortcut Ctrl-K, Ctrl-C.

Ctrl-K, Ctrl-U uncomments a selection.

Greg

"Geoff Jones" <no********@email.com> wrote in message
news:41***********************@news.dial.pipex.com ...
Hi

I'm sorry if I've asked this before but is there such a thing as a
multicomment in VB.Net e.g. /*.....*/ as used in C++?

It is very annoying to add a ' to all the lines I'm trying to ignore.

Geoff

Nov 21 '05 #3

P: n/a
Great!

Thanks guys

Geoff

"Greg Burns" <greg_burns@DONT_SPAM_ME_hotmail.com> wrote in message
news:e7**************@tk2msftngp13.phx.gbl...
No. But there is a toolbar button on the Text Editor Toolbar that will
comment out selected code and also a keyboard shortcut Ctrl-K, Ctrl-C.

Ctrl-K, Ctrl-U uncomments a selection.

Greg

"Geoff Jones" <no********@email.com> wrote in message
news:41***********************@news.dial.pipex.com ...
Hi

I'm sorry if I've asked this before but is there such a thing as a
multicomment in VB.Net e.g. /*.....*/ as used in C++?

It is very annoying to add a ' to all the lines I'm trying to ignore.

Geoff


Nov 21 '05 #4

P: n/a
Geoff,
In addition to the other comments (no pun intended).

I will occasionally use #if & #endif to include/exclude blocks of code.

Hope this helps
Jay

"Geoff Jones" <no********@email.com> wrote in message
news:41***********************@news.dial.pipex.com ...
Hi

I'm sorry if I've asked this before but is there such a thing as a
multicomment in VB.Net e.g. /*.....*/ as used in C++?

It is very annoying to add a ' to all the lines I'm trying to ignore.

Geoff

Nov 21 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.