I need to "hide" text in a class definition
Posted on 2004-09-07
I am new to VB.net. I have experience in C++.
I have a class module (call it a.vb) that contains all the code necessary for a class I have designed. It actually works. (Scary) My issue is, this class contains a lot of private stuff - enums, structures, variables, interfaced to legacy DLLs, etc. I always code private data before any functions or procedures; and I always code New() first. In this particular case, new is around line 800. This is annoying.
I want to do one of two things -
1) Move all the junk to another file and #include it. (Excuse my C.)
2) The IDE has methods of collapsing definitions of procedures etc. Is there a way to define a section - such that everything between the section and end section will collapse?
Answers to eather question will be appreciated. I'll split points if I get good answers to both. Also, if there is a third possibility - let me know. As I said - I am new and want to learn the new tricks.