Home > Software engineering >  Write their own how to call the main ocx form a method
Write their own how to call the main ocx form a method

Time:10-08

Such as the main form form1 one way
Sub (a)
Msgbox (" test ")
End sub
Could you tell me how to call this method a in ocx

CodePudding user response:

Ocx defines an event, ocx triggered this event,

The main program written for this event is a process, call inside a ()

CodePudding user response:

If you are sure ocx must be in the form of words, uocx ocx is write their own, have the container property, returns the ocx in containers (form) of references,
Have quoted can,,,,
 Option Explicit 
Public Sub (a)
The Debug. Print "aa"
End Sub
Private Sub Form_Load ()
Uocx1. Container. A
End Sub
  • Related