About events in the class

xiaoxiao2021-03-06  80

Class definition event

PUTLIC EVENT TCLICK ()

Triggering events during class

Raiseevent Tclick

Use events in the window

DIM WITHEVENTS C AS Class1 '// Notification VB object can accept an event

Private sub fascist_click1 ()

Set c = new class1

End Sub

Private sub c_tclick () '// You can use the class's event!

End Sub

转载请注明原文地址:https://www.9cbs.com/read-95110.html

New Post(0)