What is an Event?

Author Topic: What is an Event?  (Read 3629 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 23
  • Posts: 621
  • 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.

Offline johnv5

  • Trade Count: (0)
  • Semi-Newbie
  • *
  • Thank You 0
  • Posts: 14
  • Karma: 0
Re: What is an Event?
« Reply #2 on: 01-11-2019, 03:03:08 »
An event is an action or occurrence such as a mouse click, a key press, mouse movements, or any system-generated notification. A process communicates through events. For example, interrupts are system-generated events. When events occur, the application should be able to respond to it and manage it. Events in ASP.NET raised at the client machine, and handled at the server machine. For example, a user clicks a button displayed in the browser. A Click event is raised. The browser handles this client-side event by posting it to the server. The server has a subroutine describing what to do when the event is raised; it is called the event-handler. Therefore, when the event message is transmitted to the server, it checks whether the Click event has an associated event handler. If it has, the event handler is executed.

 

Related Topics

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