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: Intermediate
Jan 26, 1999

Reduce the Clutter in Your VB IDE

Here's another simple but useful add-in you can add to your arsenal. Follow the directions given in the previous tip "Add Remarks to Your Procedures," with only minor differences. Use the project name CloseWindows rather than RemBuilder. Also, change the description to "Close All IDE Windows." Finally, type a suitable caption for the menu command, such as Close IDE &Windows. Insert this code in the MenuHandler_Click procedure:
 
Dim win As VBIDE.Window
For Each win In VBInstance.Windows
If win Is VBInstance.ActiveWindow Then
' it's the active window, do nothing
ElseIf win.Type = vbext_wt_CodeWindow Or _
	win.Type = vbext_wt_Designer Then
' code pane or designer window
win.Close
End If
Next
When you select the add-in from the Add-Ins menu, it closes all the forms and code windows currently open, except the one you're working with.
Francesco Balena
 
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