473,320 Members | 2,083 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,320 software developers and data experts.

Should I use eventArgs or e

I'm working on something the wizard converted from VB6.

I have some event handlers that use eventArgs and some that use e.

It may be simply that the wizard used eventArgs and the IDE uses e.

I know either will work but I'm wondering if there is a convention I should
follow?

Is there?

Thanks,

Cal
Nov 20 '05 #1
5 1025
Cor
No there is not Sam,

The e and eventArg are only words chosen by the ones who did make the wizard
and the IDE. It can be any word.

Maybe they took "eventArg" in the converting, because it was more possible
that it is unique than e in your program. I will for testing mostly use
words as a, b, c, d, and cannot take often with dotnet e.

In samples is the "e" often used, so I would advice you to keep it with
that.

I hope this helps?

Cor
Nov 20 '05 #2
* " SamSpade" <st**************@REMOVEaol.com> scripsit:
I'm working on something the wizard converted from VB6.

I have some event handlers that use eventArgs and some that use e.

It may be simply that the wizard used eventArgs and the IDE uses e.

I know either will work but I'm wondering if there is a convention I should
follow?


It should be called 'e', not 'eventArgs'.

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #3
Thanks

I'll be changing. I like consistency.

Cal

" SamSpade" <st**************@REMOVEaol.com> wrote in message
news:Oq*************@tk2msftngp13.phx.gbl...
I'm working on something the wizard converted from VB6.

I have some event handlers that use eventArgs and some that use e.

It may be simply that the wizard used eventArgs and the IDE uses e.

I know either will work but I'm wondering if there is a convention I should follow?

Is there?

Thanks,

Cal

Nov 20 '05 #4
Cal,
In addition to the other's comments:

The framework is largely rather consistent on using "e", as the Design
Guidelines for Class Library Developers say to use "e".

http://msdn.microsoft.com/library/de...Guidelines.asp

http://msdn.microsoft.com/library/de...Guidelines.asp

I normally use "e" for new code. However! for upgraded projects I refactor
(Refactoring http://www.refactoring.com) the parameter names and change
other design elements as time permits.

Hope this helps
Jay
" SamSpade" <st**************@REMOVEaol.com> wrote in message
news:Oq*************@tk2msftngp13.phx.gbl...
I'm working on something the wizard converted from VB6.

I have some event handlers that use eventArgs and some that use e.

It may be simply that the wizard used eventArgs and the IDE uses e.

I know either will work but I'm wondering if there is a convention I should follow?

Is there?

Thanks,

Cal

Nov 20 '05 #5
Thanks, especially for the URL's
They sound like something I like to know about

cal
"Jay B. Harlow [MVP - Outlook]" <Ja************@msn.com> wrote in message
news:e0**************@TK2MSFTNGP09.phx.gbl...
Cal,
In addition to the other's comments:

The framework is largely rather consistent on using "e", as the Design
Guidelines for Class Library Developers say to use "e".

http://msdn.microsoft.com/library/de...Guidelines.asp
http://msdn.microsoft.com/library/de...Guidelines.asp
I normally use "e" for new code. However! for upgraded projects I refactor
(Refactoring http://www.refactoring.com) the parameter names and change
other design elements as time permits.

Hope this helps
Jay
" SamSpade" <st**************@REMOVEaol.com> wrote in message
news:Oq*************@tk2msftngp13.phx.gbl...
I'm working on something the wizard converted from VB6.

I have some event handlers that use eventArgs and some that use e.

It may be simply that the wizard used eventArgs and the IDE uses e.

I know either will work but I'm wondering if there is a convention I

should
follow?

Is there?

Thanks,

Cal


Nov 20 '05 #6

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

Similar topics

8
by: Chris Mayers | last post by:
I am trying to track a suspected memory leak in an application I'm writing and through repeated simplification of my project, I have found the following which is quite easily replicated should you...
4
by: Steve Amey | last post by:
Hi all I am creating a basic control to perform some tasks, and I want to declare some events to be raised so they can be handled from the form that the control is on. I can create my own Event...
2
by: Rob Mayo | last post by:
OK, maybe this is my opinion, maybe these are bugs. Given the folowing: I have a NotifyIcon on my Form, a Context menu associated with the NotifyIcon, and a MenuItem on the ContextMenu set as...
8
by: Phill | last post by:
All the event handlers seem to pass an Object and an EventArgs object. If the event doesn't need this info why pass them anyway? It is inefficient.
5
by: Anand Ganesh | last post by:
Hi All, I need some help. I am sort of not sure how to approach this problem. I have a MAINPROGRAM. This is the core application. I have asked two of my staff to developed two different...
25
by: MadCrazyNewbie | last post by:
Hey Group, Im Sure this is simple but I carn`t seem to find any info anywhere:( I have 2 x Forms: Form 1 has a DataConnecter and several DataAdapters on it, all bound together in my DataSet. ...
2
by: Bob | last post by:
Hi, I'm still new to asp.net and i would like to understand this: "Source As Object, e As EventArgs" <script runat="server"> Sub button1(Source As Object, e As EventArgs) p1.InnerHtml="You...
0
by: hennas | last post by:
Basically i want to design a membership Name and Telephone List form using the following command buttons. Edit Add New; Update; Delete; Cancel; Save; Clear, and Exit
1
by: kumar85 | last post by:
using System; using System.Collections; using System.Configuration; using System.Data; using System.Linq; using System.Web; using System.Web.Security; using System.Web.UI; using...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.