Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > VB How-To
|
VB How-To Ask your "How do I do this with VB?" questions in this forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB How-To 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 September 10th, 2003, 03:45 PM
Authorized User
 
Join Date: Jun 2003
Posts: 75
Thanks: 0
Thanked 0 Times in 0 Posts
Default Comment Out Section Of VB Code

Is there a way to highlight several lines of VB code and then press a combination of keys to automatically comment out the lines?

TIA

Rita
 
Old September 10th, 2003, 03:55 PM
Friend of Wrox
 
Join Date: Aug 2003
Posts: 205
Thanks: 0
Thanked 0 Times in 0 Posts
Default

There is a button in the VB Editer that does this. It is in the Edit toolbar. It is called Comment Block and looks like a black line with a couple of blue lines beneath it with several black lines beneath that. If it isn't there add it with customize.
 
Old September 10th, 2003, 04:01 PM
Authorized User
 
Join Date: Jun 2003
Posts: 75
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks Yehuda. So easy when you know how.. :)
 
Old September 10th, 2003, 04:18 PM
Friend of Wrox
 
Join Date: Aug 2003
Posts: 205
Thanks: 0
Thanked 0 Times in 0 Posts
Default

My pleasure. :)





Similar Threads
Thread Thread Starter Forum Replies Last Post
Can <!- - - -> be used to comment out aspnet code cJeffreywang ASP.NET 2.0 Basics 2 April 24th, 2008 01:35 AM
Urgent:hard disk serial code and vb code ivanlaw Pro VB 6 0 July 25th, 2007 04:05 AM
VB: .Exe file, serial code and activation code ivanlaw Pro VB 6 8 July 6th, 2007 05:44 AM
Impersonate section of code marrik General .NET 0 February 13th, 2005 07:36 PM
How to multiline comment in vb.net ? MisbahAnsari VS.NET 2002/2003 1 September 19th, 2003 07:25 PM





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