>>I just found this goody today, did any body else know this???Gee, Shawn ... I thought *everybody* knew that. <g> Seriously, thanks for pointing it out ... sometimes us seasoned veterans just assume that everyone knows these kinds of things and we never even think to mention it here. I use this constantly throughout my code. Not only is it a great way to organize code, as you mentioned, it's also somewhat self-documenting as well.
~~Bonnie
>
>you can use
>#region
>#endregion
>
>to block code to be used in the outlining...
>
>i.e.
>
>#region All_Click_Events
>#Endregion
>
>so i can minimize the code for the clicks if i am done working with the click events.
>
>then i can make another
>#region Common Button Calls
>#enregion
>
>ALSO works for the Variable decalrations
>#region Variables and Declarations
>
>private System.Windows.Forms.TabPage pgEdit;
>private Clients oClients;
>private DataSet dsClients;
>
>#endregion
>
>this trims down to one line when collapsed - called Variables and Declarations
>
>
>A GREAT way to organize code!!!