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 5 1025
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
* " 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>
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
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
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
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
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...
|
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...
|
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...
|
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.
|
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...
|
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.
...
|
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...
|
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
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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
|
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...
| |