What is an Event?

Author Topic: What is an Event?  (Read 1873 times)

Offline beingchinmayTopic starter

  • Trade Count: (0)
  • Jr. Member
  • **
  • Thank You 1
  • Posts: 73
  • Karma: 0
  • Gender: Male
  • I am Chinmay
    • Modular Kitchen Designer
What is an Event?
« on: 11-23-2016, 05:34:49 »
•   An event in C# is a way for a class to provide notifications to clients of that class when some interesting thing happens to an object.

•   An event is a way for a class to allow clients to give it delegates to methods that should be called when the event occurs. The most familiar use for events is in graphical user interfaces.

•   Event Handlers in the .NET Fram  work r  turn void and take two parameters.

•   The first parameter is the source of the   v nt; that is the publishing object.

•   The second parameter is an object   erived from EventArgs.

•   Events are properties of the class publishing the event.

•   The keyword event controls how the event property is accessed by the subscribing classes.

Offline damponting44

  • Trade Count: (0)
  • Hero Member
  • *****
  • Thank You 22
  • Posts: 622
  • Karma: 0
  • Gender: Male
    • Taxi app development
Re: What is an Event?
« Reply #1 on: 09-23-2017, 04:03:28 »
event is an action that occurs as a result of the user or another source, such as a mouse being clicked, or a key being pressed.
Example of an Event:
A file being created or modified on a filesystem.
A hardware sensor such as a webcam or microphone receiving sensory input.


Related Topics

  Subject / Started by Replies Last post
3 Replies
Last post 07-09-2012, 05:58:05
by RichardSmith
0 Replies
Last post 08-28-2015, 16:30:35
by techninja
0 Replies
Last post 09-06-2017, 06:37:37
by BrooklynMartin
0 Replies
Last post 04-02-2018, 00:13:47
by Elena_L
0 Replies
Last post 04-02-2018, 00:16:15
by Elena_L