Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB.NET 1.0 > VB.NET 2002/2003 Basics
|
VB.NET 2002/2003 Basics For coders who are new to Visual Basic, working in .NET versions 2002 or 2003 (1.0 and 1.1).
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB.NET 2002/2003 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 21st, 2004, 02:34 PM
Authorized User
 
Join Date: Apr 2004
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Default Commenting large blocks of code

I know you can comment out a single line with the '.

Is there a way to comment out large blocks of code? For example in C++ you can put /* at the beginning of the code and */ at the end of the code and it will all be commented out?

 
Old April 21st, 2004, 04:16 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 540
Thanks: 0
Thanked 4 Times in 4 Posts
Default

If you are using Visual Studio you can highlight the selection and comment/uncomment it several ways.

1. "Edit" menu, Advanced, Comment/Uncomment
2. Click the corresponding toolbar buttons
3. CTRL + K, CTRL + C to comment, CTRL + K, CTRL + U to uncomment

J
 
Old April 21st, 2004, 04:17 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 540
Thanks: 0
Thanked 4 Times in 4 Posts
Default

Note that for the above, you need to press CTRL + K, then CTRL + C in that order and likewise for the uncomment.

J





Similar Threads
Thread Thread Starter Forum Replies Last Post
Commenting Code TritonOps BOOK: Beginning VB.NET 2nd Edition/Beginning VB.NET 2003 2 March 1st, 2006 11:02 AM
Building Blocks terry s Dreamweaver (all versions) 1 January 12th, 2005 02:03 PM
Datagrid commenting seanmayhew BOOK: ASP.NET Website Programming Problem-Design-Solution 0 November 23rd, 2004 03:12 PM
ActionScript Code Commenting Ben Horne Flash (all versions) 1 December 9th, 2003 10:26 AM
disable forum code within [code] blocks? nikolai Forum and Wrox.com Feedback 0 October 23rd, 2003 07:52 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.