Access to OCX Classes - HOW ?

make

Member
Hi Peggers !i have another Question !i user an Activex for smtro Mail-sending.But in the ocx, are some additional classes i want to use, for example the txt2htm function. But i dont know how i can access these classes.I initiliased the ocx after loading and defining the Mail Variable asan com-handle in the defining var part.Mail :chctrlframe:controls:item(1).Her is a short example to access this classes in VB:Dim oMessage As New sevActiveX.sevMailIf oMessage.OpenMail(Dateiname) Then With oMessage.Message If .TextHTML = "" And .TextPlain <> "" Then ' Plain-Text ins HTML-Format konvertieren txtHTML.Text = oMessage.Text2HTM(.TextPlain) Else txtHTML.Text = .TextHTML End If End WithEnd IfCan anyone give me an advice ? Greets make
 

ajaysheth

Member
Make,

If you use COM Property / COM Object using the COM-HANDLE, I am sure you will have access to the Class that has the txt2htm function. Alternatively, see how to use COM-SELF handle.

COM-SELF [ :OCX-property-reference | :OCX-method-reference ].

One of these should help you in using the class and its attributes.

HTH,
Ajay. :awink:
 
Top