Posts Tagged Eveniment

How to: Implement Interfaces in VB.NET

Implementing an interface in VB.NET is done by specification Implements. Interfaces can be implemented by classes [...] and structures [...]. A class or structure can implement one or more interfaces, separated by the operator , in VB.NET.
List of interfaces implemented by class/structure is given by their associated names at defining time [...].
Read the rest of this entry »

, , , ,

No Comments

How to: Transmit the Message Assigned to an Event Defined in VB.NET

Appearance of an event and transmission of its message is accomplished by specification RaiseEvent.
Specification RaiseEvent is used only for events declared explicitly.
Use RaiseEvent specification is exemplified in the following source code sequence developed in VB.NET:
Read the rest of this entry »

, , , ,

No Comments

How to: Define Events in Classes Built in VB.NET

Declaring events in a class built in VB.NET is done using Event specification. Defining event involves assigning the name and arguments providing.
Because an event is included in a class, the objects defined on that class may send messages related to event – raise. Transmission is accomplished by specification RaiseEvent. Assigning the event to procedure for event handling is done by specifications Handles or AddHandler [...].
Read the rest of this entry »

, , , ,

No Comments

How to: Define Delegates in VB.NET

The delegate is a pointer that allows the call of a function indirectly through its memory address. The delegate is used to call methods of other objects. It is similar to the function pointer used in other programming languages. The difference is that the delegate is a reference type on System.Delegate class.
Read the rest of this entry »

, , , , ,

No Comments

How to: Identify Characteristics of Events in VB.NET

The event is a message sent by an object and announces the application of production a fact.
Events are implemented using delegates [...].
For example, clicking a command button in a graphical interface causes the appearance of the event Click. The event is treated by a procedure.
Read the rest of this entry »

, , , ,

No Comments

Implementarea interfetelor in VB.NET

Implementarea unei interfete in limbajul VB.NET se realizeaza prin cuvantul rezervat Implements. Interfetele pot fi implementate de catre clase de obiecte [...] si structuri [...]. O clasa de obiecte sau o structura pot implementa una sau mai multe interfete, separate prin operatorul , in VB.NET.
Lista de interfete implementate de clasa de obiecte/structura este data prin denumirile asociate acestora la definire [...].
Read the rest of this entry »

, , , , , , , , ,

1 Comment

Transmiterea mesajului asociat unui eveniment definit in VB.NET

Aparitia unui eveniment si transmiterea mesajul asociat acestuia se realizeaza prin specificatia RaiseEvent.
Specificatia RaiseEvent este utilizata doar pentru evenimente declarate explicit.
Read the rest of this entry »

, , , , , , , ,

1 Comment

Definirea evenimentelor in clase de obiecte VB.NET

Declararea evenimentelor intr-o clasa de obiecte VB.NET se realizeaza cu ajutorul specificatiei Event. Definirea evenimentului presupune atribuirea denumirii si furnizarea argumentelor.
Prin includerea unui eveniment intr-o clasa de obiecte, obiectele definite pe baza clasei respective pot transmite mesaje asociate evenimentului – raise. Transmiterea se realizeaza prin specificatia RaiseEvent. Asocierea evenimentului cu procedura de tratare a lui se realizeaza prin specificatiile Handles sau AddHandler [...].
Read the rest of this entry »

, , , , , , , ,

No Comments

Definirea delegatilor in VB.NET

Delegatul este un pointer care permite apelul unei functii in mod indirect prin intermediul adresei de memorie a acesteia. Delegatul este utilizat pentru a apela metode ale altor obiecte. Este similar pointerului de functie utilizat in alte limbaje de programare. Diferenta consta in faptul ca delegatul este un tip referinta pe baza clasei System.Delegate.
Delegatii sunt folositori in situatiile in care aparitia unui eveniment determina apelul de handler-i de eveniment diferiti, in functie de contextul aparitiei evenimentului. Acest lucru impune asocierea dinamica a evenimentelor cu handler-ii de evenimente, fiind utilizati delegatii in acest scop.
Read the rest of this entry »

, , , , , , , , ,

2 Comments

Caracteristici ale evenimentelor in VB.NET

Evenimentul reprezinta un mesaj transmis de catre un obiect si care anunta aplicatia de producerea unui fapt.
Evenimentele sunt implementate folosind delegati [...].
Read the rest of this entry »

, , , , , , , , ,

4 Comments