473,473 Members | 1,895 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

What's the recommended name convention for the control?

Hi, guys,

I have a simple question, what's the recommended name convention for the
user control on the form.

If I put a button on the form, by default, it will be called button1,
how do you change if if I want to create a command button.

A. commandButton.
B. CommandButton.
B. buttonCommand.
D. ButtonCommand.
E. btnCommand.

I want to get some suggestions here,seriously.

Thanks,

John
Aug 11 '06 #1
2 1226
commandButton. Try to create MenuStrip with items and then take a look
on item names. Designer generates names like commandToolStripMenuItem
john sun wrote:
Hi, guys,

I have a simple question, what's the recommended name convention for the
user control on the form.

If I put a button on the form, by default, it will be called button1,
how do you change if if I want to create a command button.

A. commandButton.
B. CommandButton.
B. buttonCommand.
D. ButtonCommand.
E. btnCommand.

I want to get some suggestions here,seriously.

Thanks,

John
Aug 12 '06 #2
http://www.irritatedvowel.com/Progra...Standards.aspx


"john sun" <js***********@gmail.comwrote in message
news:%2****************@TK2MSFTNGP02.phx.gbl...
Hi, guys,

I have a simple question, what's the recommended name convention for the
user control on the form.

If I put a button on the form, by default, it will be called button1, how
do you change if if I want to create a command button.

A. commandButton.
B. CommandButton.
B. buttonCommand.
D. ButtonCommand.
E. btnCommand.

I want to get some suggestions here,seriously.

Thanks,

John

Aug 12 '06 #3

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

Similar topics

3
by: Todd Gardner | last post by:
Pardon my extremely ignorant newbie questions. Where can I go to find more information about the "self" argument? Is there something special about the word "self" or did Mr. Guido van Rossum...
6
by: yyy | last post by:
my question is rather theoretical than practical in the pure programming aspect... is "name mangling" the same as "name decorating" ? browsing the web, you might find multiple people saying...
15
by: ben | last post by:
this programme from sedgewick's 'algorithms in c parts 1-4' "is a sample client program that ... uses a symbol table to find the distinct values in a sequence of keys (randomly generated or read...
11
by: G Patel | last post by:
Can anways explain why many multi-file programs I've seen don't have a main.c file, instead main() is hidden in a file with a different name? Is this just a preference, or is there an unspoken rule...
19
by: sabarish | last post by:
Hi friend, what is the use of function pointer in c language and where it is useful? tell with simple example...? plz help me.
9
by: Jay | last post by:
Everywhere I go (read/browse) I see these parameters.... ByVal sender As Object, ByVal e As System.EventArgs Yet I never see them used within the function/method. Could someone tell me what they...
2
by: =?Utf-8?B?bmt3?= | last post by:
I usually name the controls as txtSomething, ddlSomething, gvSomething. However, the FXCop indicate it's an error and Pascal convention is preferred. Any good suggesion on ASP.Net control name...
2
by: Tyno Gendo | last post by:
I'm writing a test "modular site". So far I have created an App class, a Module Manager class and a couple of test modules. The Manager looks in a directory called 'modules' and then for every...
2
by: dolphin | last post by:
What is the different between c++ call convention and c call convention?Can some give some examples?
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...
1
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.