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

Why are sender and object used as in sender As System.Object, ByVal e As System.EventArgs?

Why specifically are sender and object used? I could use dfs as Object and l
as Evenat args. Some books show s instead of sender. Just wondering why
sender and object are used instead of someting elese.
Nov 17 '05 #1
2 1612
They are just variable names that happen to be used most often in the
examples given by Microsoft. You can call them Simon and Garfunkle if you
like.

John
http://mallsocket.com

"Showjumper" <sh*******@grkjashdjkf.com> wrote in message
news:uI**************@TK2MSFTNGP11.phx.gbl...
Why specifically are sender and object used? I could use dfs as Object and l as Evenat args. Some books show s instead of sender. Just wondering why
sender and object are used instead of someting elese.

Nov 17 '05 #2
So why does MS like using them?
"John" <ne********@mallsocket.com> wrote in message
news:Oi**************@TK2MSFTNGP10.phx.gbl...
They are just variable names that happen to be used most often in the
examples given by Microsoft. You can call them Simon and Garfunkle if you
like.

John
http://mallsocket.com

"Showjumper" <sh*******@grkjashdjkf.com> wrote in message
news:uI**************@TK2MSFTNGP11.phx.gbl...
Why specifically are sender and object used? I could use dfs as Object
and l
as Evenat args. Some books show s instead of sender. Just wondering why
sender and object are used instead of someting elese.


Nov 17 '05 #3

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

Similar topics

3
by: Marty | last post by:
Hi, I have this event that is performed by three different controls, how can I know (from sender object) wich control is used to trigger the event? Private Sub HighlightSelectedRow(ByVal...
3
by: Maurice Walmsley | last post by:
I'll avoid tell you how lame I am and get straight to the question... I need a good expanation to the "ByVal sender As Object, ByVal e As System.EventArgs" part of; Public Sub...
1
by: Ryan McLean | last post by:
Hi everyone! What is happening is the method: sub_btnSubmitClicked is being executed every time any other object with a Handler is executed. I am trying not to use the withevents and handles...
0
by: Patrick.O.Ige | last post by:
Why if i try paging with PagedDataSource i get the error:- System.NullReferenceException: Object reference not set to an instance of an object. THE ERROR LINE IS AT :-" btnPrev.Visible = (Not...
2
by: nomenklatura | last post by:
Hi, i call Call treeviewXi_DoubleClick("Try", e) from another procedur.. and in treeviewX_DoubleClick i use this string and do what i want example : if sender="try" then doit
7
by: Arpan | last post by:
The .NET Framework 2.0 documentation states that An Object variable always holds a pointer to the data, never the data itself. Now w.r.t. the following ASP.NET code snippet, can someone please...
2
by: mj.redfox.mj | last post by:
Hi, Pretty basic question, apologies but being a bit of a newbie I still don't know the answer to this kind of thing! I have a repeater which, upon databind calls a subroutine, as below: ...
2
by: Alcestis | last post by:
I understand that if i call a subroutine from a control the subroutine refers to the control that called it using sender. What i don't understand however is how exactly to implement this... Say...
5
by: raylopez99 | last post by:
I have a form, Form6, that has a bunch of buttons overlaid on it. I want to be able to click on any arbitrary area of the form, and if that area of the form is overlaid by a button, I want to...
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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
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...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.