Solved

Keeping some code closed every time i open a project

Posted on 2006-06-14
3
247 Views
Last Modified: 2010-04-23
My question is really simple. I am working on a project and every time some code that i dont want to work on i whip it up by pressing the minus ( - ) sign and then i can only see the declaration of the method or sub or function. The problem is that even if i save the project the next time the code is again viewable and have to minimize it again. Any idea where i can find the option to change that cause i have seen that it stays "closed" in othe rcomputers.
0
Comment
Question by:ioustinos_sarris
3 Comments
 
LVL 8

Accepted Solution

by:
doobdave earned 50 total points
ID: 16951457
Hi there,

not sure if this is what you want, but you can use "Regions" in yoour code as follows:

#region "Completed Code"

' put the code you don't want to see in here.

#end region

when you close yoour project and open it again, that area will be collapsed by default.

Best Regards,

David
0

Featured Post

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Well, all of us have seen the multiple EXCEL.EXE's in task manager that won't die even if you call the .close, .dispose methods. Try this method to kill any excels in memory. You can copy the kill function to create a check function and replace the …
Introduction As chip makers focus on adding processor cores over increasing clock speed, developers need to utilize the features of modern CPUs.  One of the ways we can do this is by implementing parallel algorithms in our software.   One recent…
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

803 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question