Solved

Keeping some code closed every time i open a project

Posted on 2006-06-14
3
256 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

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

Suggested Solutions

A while ago, I was working on a Windows Forms application and I needed a special label control with reflection (glass) effect to show some titles in a stylish way. I've always enjoyed working with graphics, but it's never too clever to re-invent …
Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

828 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