Results 1 to 3 of 3

Thread: How to get data to be used by ActiveX control

  1. #1

    Thread Starter
    New Member
    Join Date
    Aug 2006
    Posts
    7

    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.

  2. #2
    PowerPoster
    Join Date
    Feb 2006
    Location
    East of NYC, USA
    Posts
    5,691

    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:
    1. Public Property Get ButtonInfo() As Integer
    2.   ButtonInfo = m_ButtonInfo
    3. End Property
    Or you can raise an event
    VB Code:
    1. Event MyButtonClick()
    2. Private Sub cmdMyButton_Click()
    3.   RaiseEvent MyButtonClick
    4. End Sub
    The most difficult part of developing a program is understanding the problem.
    The second most difficult part is deciding how you're going to solve the problem.
    Actually writing the program (translating your solution into some computer language) is the easiest part.

    Please indent your code and use [HIGHLIGHT="VB"] [/HIGHLIGHT] tags around it to make it easier to read.

    Please Help Us To Save Ana

  3. #3

    Thread Starter
    New Member
    Join Date
    Aug 2006
    Posts
    7

    Resolved Re: How to get data to be used by ActiveX control

    Thanks for help!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width