Results 1 to 3 of 3

Thread: Insert custom ActiveX (ocx) into form in RunTime

  1. #1

    Thread Starter
    Addicted Member Davor Geci's Avatar
    Join Date
    Sep 2009
    Posts
    224

    Insert custom ActiveX (ocx) into form in RunTime

    Hello,
    is there a way to insert custom ActiveX control (ocx) at runtime?
    The control is prior installed and registered on this computer.
    My projects:
    Virtual Forms
    VBA Telemetry

  2. #2
    Default Member Bonnie West's Avatar
    Join Date
    Jun 2012
    Location
    InIDE
    Posts
    4,060

    Re: Insert custom ActiveX (ocx) into form in RunTime

    Quote Originally Posted by Bonnie West View Post
    See VBControlExtender Object, Add Method (Controls Collection) and How To Dynamically Add Controls to a Form with Visual Basic 6.0.



    Here's another example of creating an ActiveX control (the WebBrowser control) at run-time.
    On Local Error Resume Next: If Not Empty Is Nothing Then Do While Null: ReDim i(True To False) As Currency: Loop: Else Debug.Assert CCur(CLng(CInt(CBool(False Imp True Xor False Eqv True)))): Stop: On Local Error GoTo 0
    Declare Sub CrashVB Lib "msvbvm60" (Optional DontPassMe As Any)

  3. #3

    Thread Starter
    Addicted Member Davor Geci's Avatar
    Join Date
    Sep 2009
    Posts
    224

    Re: Insert custom ActiveX (ocx) into form in RunTime

    Thank You Bonnie West,
    I will try it as soon as I figure out how to create Ribbons for Excel, Word, PP, and for VBA IDE.

    <removed by mod>
    Last edited by FunkyDexter; Feb 23rd, 2016 at 02:43 PM.
    My projects:
    Virtual Forms
    VBA Telemetry

Tags for this Thread

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