Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Visual Studio.NET / IDE / May 2004

Tip: Looking for answers? Try searching our database.

Collapse to Definitions on Open?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Dave Veeneman - 29 Mar 2004 18:53 GMT
Is there a simple way to force a document to Collapse to Definitions on
open? The item in Options collapses the region blocks-- I want to collapse
one step further.

I tried writing a simple macro in the DocumentOpening event of the Macros
IDE. Unfortunately, it did nothing. My next change vaporizes the running
instance of VS.Net.

Can someone provide me the correct macro code to do this? Is there an easier
way to do it?

Signature

Thanks in advance,

Dave Veeneman
Chicago

Dave Veeneman - 19 May 2004 15:55 GMT
I finally got back to this issue, and here is what I did: Record a one-line
macro that makes a call to CollapseToDefinitions (select the item on the
Edit Menu). Then create a DocumentEvents_DocumentOpened event handler in the
Macro IDE (go to Macro Explorer, open the macro IDE, and select the
Environment Events module in My Macros). Create a
DocumentEvents_DocumentOpened  handler and move the recorded call to
CollapseToDefinitions to the event handler. Documents will now collapse to
Definitions when they are opened.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.