Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
The Region section
Message
From
15/01/2009 10:47:56
 
General information
Forum:
ASP.NET
Category:
Visual Studio
Environment versions
Environment:
VB 8.0
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Web
Miscellaneous
Thread ID:
01373351
Message ID:
01374072
Views:
27
>>>>>>>I have two projects. Both are for a desktop project. In each, I have a form. In each, I have some code in the .vb file related to it. In one, I see a Region that I can expand or collapse. In the other, I do not have that section. Does anyone know what controls the display of that section in the .vb file?
>>>>>>
>>>>>>The IDE-generated stuff plugs in #region/#endregion in various places. Perhaps it's not consistent in where it generates it. Personally, I love these things and use them everywhere in my code.
>>>>>>
>>>>>>~~Bonnie
>>>>>
>>>>>
>>>>>
>>>>>#region m_myNumber Member
>>>>>private int m_myNumber;
>>>>>#endregion
>>>>>
>>>>>
>>>>>;-)
>>>>
>>>>My general practice is to divide into regions:
>>>>
>>>>Properties
>>>>Methods
>>>>Event Handlers
>>>>
>>>>In the case of the MVP pattern, there will be a region for view members subdivided into Properties and Methods as well.
>>>>etc
>>>
>>>MVP or MVC?
>>
>>MVP (Model View Presenter)
>
>OK, I guess it's been renamed. It used to be called Model View Controller.
>
>Uh, what is the difference between view and presenter?

For the MVP pattern here is a basic overview and an example:
http://blog.vuscode.com/malovicn/archive/2006/10/10/Model-View-Presenter-_2800_MVP_2900_-pattern.aspx

Here is a great podcast with examples (really the best I've seen):
http://polymorphicpodcast.com/shows/mv-patterns/

I like these for a simple explanation of the difference between MVP and MVC (although I've seen a lot of different comparisons):

http://ameleta.spaces.live.com/blog/cns!5F6316345A821420!163.entry
http://www.mvcsharp.org/Basics_of_MVC_and_MVP/Default.aspx
.·*´¨)
.·`TCH
(..·*

010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform