VS.NET designer

  • Thread starter Thread starter Gawel
  • Start date Start date
G

Gawel

Hajo,

VS.NET designer generates method for event using following pattern:
controlName_EvenName. Now If you have variable name written lower case
then your method will start its name lower case too.
And in .NET method names are upper case.
What is more you get this ugly underscore in the middle
of method name.

Anybody has idea how to change this pattern?
Do I need to edit some files?

thanks in advance for any info

Gawel
 
Hi,

VS.NET designer generates method for event using following pattern:
controlName_EvenName. Now If you have variable name written lower case
then your method will start its name lower case too.
And in .NET method names are upper case.
What is more you get this ugly underscore in the middle
of method name.

The methods don't have to start with uppercase, it's just a convension.
The pattern used is good cause just by seeing a method you know the event of
what control it handles. The only thing to note is that if afterr that you
change the name of the control it does not change the method name, so you
have to be careful with that.

Anybody has idea how to change this pattern?

No Idea really, but I bet that you cannot maybe somebody in the VSNET NG can
give a correct answer.



cheers,
 
Ignacio said:
Hi,





The methods don't have to start with uppercase, it's just a convension.

Thanks for response.
I think it is something more then convention because all classes in .net
framework use it.
The pattern used is good cause just by seeing a method you know the event of
what control it handles. The only thing to note is that if afterr that you
change the name of the control it does not change the method name, so you
have to be careful with that.
Ok



No Idea really, but I bet that you cannot maybe somebody in the VSNET NG can
give a correct answer.

OK


Gawel
 
Hi,


Thanks for response.
I think it is something more then convention because all classes in .net
framework use it.

Precisely, it's a convension, nothing force you to follow it.

Cheers,
 
Back
Top