List Info

Thread: SV: Changing default modifier for controls




SV: Changing default modifier for controls
user name
2006-11-21 08:30:17
Hi Jan
 
I prefer to explicitly expose the extendable controls
through protected properties that I add by hand after the
user interface has been designed. There are two main reasons
not to use protected fields:
 
1. the feature isn't CLS Compliant
2. it exposes your internal implementation and makes it
harder to change in future releases.
 
Best Regards,
Daniel
 
Daniel.Peterssoncefalo.se
+46 (0)70-1815724

________________________________

Från: Discussion of development on the .NET platform using
any managed language genom Jan Dropczynski
Skickat: ti 2006-11-21 09:00
Till: DOTNET-CLRDISCUSS.DEVELOP.COM
Ämne: [DOTNET-CLR] Changing default modifier for controls



Hello world! 

In my company we're developping software with a GUI that
should be
extendable or better inheritable. However, if you are using
the forms
designer of VS2005 with VB.NET - we're using this language
mostly,
unfortunately - all controls added to a form have the
modifier "Friend" for
default but this is not usable if you want be inheritable!
Therefore, my question is: Is there an option to change the
default
modifier so we can set it to "Protected"? That
will save us the work to
change the modifier each time you're adding a control to a
form.

If there's no such option, I say: Hello Microsoft, I have a
change request
for the next version of VS.Net. ;)

Thanks in advance and best regards,
Jan

===================================
This list is hosted by DevelopMentor®  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com




===================================
This list is hosted by DevelopMentor®  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )