Click here to Skip to main content
15,886,689 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hey coders!
Maybe some one can help me with basic organizing issues.
I'm working on a program with Several user controls , custom events blah blah. and as you can imagine, the code is very large.

What I would like to do is tidy up a bit so that my code is easier to navigate. example:

'-----------------------Events----------------------------------- COL1

'---------------The Blah event---------- COL2
Public Class BlahEventArgs()
end class
public event Blah
'---------------end the blah event------ 2

'------------- Event Handlers------------------------------ COL3

'-------handlers for events from icon(custom control------ COL4
'----------------end icon handler------------------------ 4
'-------------- End Event Handlers------------------------- 3
'---------------end events--------------------------------------- 1

I hove the word COL and a number beside it to represent an area that i would like to collapse.
Th corresponding number is to show where i would like it to collapse to; for instance COL1 will collapse to 1.

Any ideas? Help would be so much appreciated. Thank you.
Posted

1 solution

Have you considered "#Region Directive" ?
http://msdn.microsoft.com/en-us/library/sd032a17.aspx[^]
 
Share this answer
 
Comments
Mr.TMG 10-Aug-13 12:47pm    
That looks promising.. i will try it out and let you know.
Mr.TMG 10-Aug-13 12:50pm    
It's perfect, Thank you.
ledtech3 10-Aug-13 12:50pm    
Glad it helped :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900