Board index » Visual Studio » OLE Control Question

OLE Control Question

Visual Studio289
Hi,



I am wrting some VBA code to interact with a third party application that

has a VBA interface. A form that I am working with has an OLE Control and I

want to invoke one of its events. This third party does not have good

documentation on this control and I was wondering is there a way to find and

list the OLE control events in code?



Thanks


-
 

Re:OLE Control Question

"Mike" <Mike@noemail.com>wrote in



Quote
Hi,



I am wrting some VBA code to interact with a third party application

that has a VBA interface. A form that I am working with has an OLE

Control and I want to invoke one of its events. This third party does

not have good documentation on this control and I was wondering is

there a way to find and list the OLE control events in code?



Thanks









The way to view a control's properties, events, and methods is to use the

object browser. Simply press F2 and search for the control name.



When programming with it, if the control is an OCX, then you'll have to

drop it on your form. If it's a DLL, then declare it WithEvents.



At the top of your code window are two combo boxes. When you're in the

declarations section (header) of your form, the left combo contains a list

of all controls that contain events. When you choose your control, the

right box will populate with the control's events.



-