473,394 Members | 1,765 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

VS.NET designer

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
Nov 16 '05 #1
3 928
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 Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation

Nov 16 '05 #2
Ignacio Machin ( .NET/ C# MVP ) wrote:
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.


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


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.


OK
Gawel
Nov 16 '05 #3
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,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
Nov 16 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: James Geurts | last post by:
Hey all... I posted this in the vs.net ide group too, but people are not answering, so I figured that it might be more appropriate here. I'm not sure if I'm adding a designer to my code properly. ...
19
by: Dales | last post by:
I have a custom control that builds what we refer to as "Formlets" around some content in a page. These are basically content "wrapper" sections that are tables that have a colored header and...
4
by: Dave Taylor | last post by:
I've been using the dataset designer in Visual Studio to create typed datasets for my application by dragging over tables from the Server Explorer and dropping them into the designer. The problem...
4
by: Rod Gill | last post by:
Hi, I have a form that when opened in the designer appears of the screen. The form selector can't be dragged (or resized) and if I scroll right and down to centralise it the form simply jumps...
3
by: Tin Gherdanarra | last post by:
A colleague gave me a project where there was a /designer/ window for database connectivity (drag&drop from the toolbox), but I can't find out how to get a /designer/ window in my own project....
4
by: ThunderMusic | last post by:
Hi, I have a custom form that works fine when I debug it or run it in release mode but cannot be loaded in the designer... Actually, it can be loaded in the designer when no control is on it, but...
13
by: cj | last post by:
In a project done in 2003 about a year ago I was told to add the SocketWrench code below into the Windows Form Designer generated code area as shown below. #Region " Windows Form Designer...
2
by: dejavue82 | last post by:
Does anybody know how to resolve the following errors? They were caused by the designer.cs file that was auto-generated by the LINQ to SQL designer. I am using the March 2007 Orcas CTP version of...
8
by: TomC | last post by:
I want to bypass the Windows Form Designer in VS, to create a form programmatically. The elements of the form are to be arranged in a table, and I want the size of the table (and therefore the...
4
by: Goran Djuranovic | last post by:
Hi all, I am experiencing a strange thing happening with a "designer.vb" page. Controls I manually declare in this page are automatically deleted after I drop another control on a ".aspx" page. -...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.