Login | Register   
LinkedIn
Google+
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


Tip of the Day
Language: Visual Basic
Expertise: Beginner
Apr 24, 1997

Commenting Code Automatically

Question:
I feel dumb. Is there a way to block comment code in VB? I searched high and low for the answer, but it has escaped me.

Answer:
Don't feel dumb...this was dumb on Microsoft's part. The Comment Block and Uncomment Block are not included on the Edit menu by default. However, you can edit your Edit menu by following these steps:

  • Right-click the menu bar and select Customize from the popup menu.
  • In the window that appears, select the Edit menu.
  • On the right hand side of the window, scroll down until you see the Comment Block choice.
  • Drag it up to the Edit menu and put it in the place you want.
  • Repeat the procedure for the Uncomment Block choice. I don't know why they didn't include all the choices, but at least they give you a way to change the menus and toolbars to your liking.
  • DevX Pro
     
    Comment and Contribute

     

     

     

     

     


    (Maximum characters: 1200). You have 1200 characters left.

     

     

    Sitemap
    Thanks for your registration, follow us on our social networks to keep up-to-date