Results 1 to 3 of 3

Thread: very simple? calling activex control from vb

  1. #1

    Thread Starter
    Evil Genius alex_read's Avatar
    Join Date
    May 2000
    Location
    Espoo, Finland
    Posts
    5,538
    Here's the plan, I created a custom activex control in vb.
    I then started an *.exe project & inserted the control on the form.

    The question - how can I call on the controls on the activex control - i.e. if there's a text box on the activex control, how do I say something like:
    Code:
    Private sub command1_click()
       Msgbox activexcontrol1.text1.text
    End Sub
    I can get a list of properties for the control, but can't see the text box in this! Thank you

    Please rate this post if it was useful for you!
    Please try to search before creating a new post,
    Please format code using [ code ][ /code ], and
    Post sample code, error details & problem details

  2. #2
    Fanatic Member Jerry Grant's Avatar
    Join Date
    Jul 2000
    Location
    Dorset, UK
    Posts
    810
    You will have to expose the child control properties required through a new property in the propertybag of your new control.

    Use the ActiveX Ctrl Interface Wizard then the Property Page Wizard.

    Jerry Grant................tnarG yrreJ
    Website: <JG-Design></.net>
    Email: [email protected]
    Working towards a bug free world......
    (Not a Microsoft employee)

  3. #3

    Thread Starter
    Evil Genius alex_read's Avatar
    Join Date
    May 2000
    Location
    Espoo, Finland
    Posts
    5,538
    Ahhhh, that's brilliant thanks Jerry!

    Please rate this post if it was useful for you!
    Please try to search before creating a new post,
    Please format code using [ code ][ /code ], and
    Post sample code, error details & problem details

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