Results 1 to 4 of 4

Thread: Passing a form to an ActiveX EXE

  1. #1

    Thread Starter
    New Member
    Join Date
    May 2002
    Posts
    4

    Passing a form to an ActiveX EXE

    Hi,

    I'm trying to open up a form as an ActiveX EXE (or DLL) as an MDIChild - the only way I can think to do this, is to pass in the form as a reference to the Show Form sub - and then set it as the parent when you open the ActX form:
    - Form1.Show False, Parent
    Unfortunately - when I try to do this - it won't allow me to pass in a Form object... any ideas?

    Cheers

    Owen

  2. #2
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    Try using the generic data type 'Object' instead of the type 'Form'.

  3. #3

    Thread Starter
    New Member
    Join Date
    May 2002
    Posts
    4
    Thanks for your prompt reply,

    I've already tried using an Object - it passes in ok - but fails when you try to set it as the parent when showing the form... is there any way to convert an object into a form (a bit like CInt(i) etc)?

    Cheers

    Owen

  4. #4
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    Post your code for setting the parent.

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