Click here to Skip to main content
15,894,896 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Is there any guidance on how to use #Region when creating a windows form? Is there a standard somewhere that I am missing? Does anyone have any suggestions for using #Region?

I would like to make sure my code is organized correctly.

Thanks,

~Jack
Posted

1 solution

That's about all you can do: I tend to create regions to group related items; for instance all properties or all overrides or all button events. I don't think there are any hard and fast rules but common sense tells me that the way I use regions is, if nothing else, reasonably sensible.
 
Share this answer
 
Comments
cuchulainn18 16-Aug-10 10:45am    
Thanks Digital Man,

It just seems like everyone is working with the same base information. Perhaps I am just naive in thinking that there's a standard out there for stuff like this. Without any formal education in programming I find myself second guessing my code organization.
R. Giskard Reventlov 16-Aug-10 10:55am    
I'm not aware of any concrete standards for regions (some people hate them as the devils own work); as I said, apply common sense and you'll be fine.
cuchulainn18 16-Aug-10 11:01am    
Reason for my vote of 5
Digital Man gave me the guidance I needed

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