Solved

Keeping some code closed every time i open a project

Posted on 2006-06-14
3
270 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

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 …
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 this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.

688 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