Computer Science, asked by zerina1, 10 months ago

window works on a basic event occurence principle .explain.​

Answers

Answered by AshKatchum
0

Answer:

Declaring Events

You declare events within classes, structures, modules, and interfaces using the Event keyword, as in the following example:

VB

Copy

Event AnEvent(ByVal EventNumber As Integer)

Raising Events

An event is like a message announcing that something important has occurred. The act of broadcasting the message is called raising the event. In Visual Basic, you raise events with the RaiseEvent statement, as in the following example:

VB

Copy

RaiseEvent AnEvent(EventNumber)

Events must be raised within the scope of the class, module, or structure where they are declared. For example, a derived class cannot raise events inherited from a base class.

Event Senders

Any object capable of raising an event is an event sender, also known as an event source. Forms, controls, and user-defined objects are examples of event senders.

Event Handlers

Event handlers are procedures that are called when a corresponding event occurs. You can use any valid subroutine with a matching signature as an event handler. You cannot use a function as an event handler, however, because it cannot return a value to the event source.

Visual Basic uses a standard naming convention for event handlers that combines the name of the event sender, an underscore, and the name of the event. For example, the Click event of a button named button1 would be named Sub button1_Click.

Explanation:

Hope you may understand.

Mark me brainliest and please follow me.

Answered by prashant15032008
0

Answer:

Events must be raised within the scope of the class, module, or structure where they are declared.

Explanation:

please mark me brainlist , I brainlist return those people

Similar questions