How to get data to be used by ActiveX control
Hi All,
I am developing an activeX control using VB6.0
This control is a container for another control i have downloaded.
I have added toolbar button to my control.
When I click a toolbar button I want certain data/information about that clicked button. Where do i store this information so as to use my control as a tool.
Thanks in Advance.
Re: How to get data to be used by ActiveX control
How do you want to retrieve the data, in the form the control is on? When the button is clicked, put the data into m_ButtonInfo. Then
VB Code:
Public Property Get ButtonInfo() As Integer
ButtonInfo = m_ButtonInfo
End Property
Or you can raise an event
VB Code:
Event MyButtonClick()
Private Sub cmdMyButton_Click()
RaiseEvent MyButtonClick
End Sub
Re: How to get data to be used by ActiveX control