Results 1 to 2 of 2

Thread: how to shut down activex from main project

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Apr 2006
    Posts
    23

    how to shut down activex from main project

    We have a very large VB6 application.
    To provide some extra features we have to create a few Activex exe.
    We call it from main menu of MDI Form.
    Activex, it's basically additional forms and the user has an ability to open a few forms at once.
    Let's say when the user opens one form the activex is running, but when he closes this form, the Activex is still running, I can't stop it, because I don't know if he still works on different form.
    The problem is, when the user close whole project my activex is still running.
    or if some error, the activex is still running.
    How can I shut down activex with the project or if some error occurs make sure acivex is not running.

  2. #2
    PowerPoster Dave Sell's Avatar
    Join Date
    Mar 2004
    Location
    /dev/null
    Posts
    2,961

    Re: how to shut down activex from main project

    You have to make sure to _always_:

    VB Code:
    1. Set theActiveX_EXE_Object = Nothing.
    Nobody knows what software they want until after you've delivered what they originally asked for.

    Don't solve problems which don't exist.

    "If I had eight hours to cut down a tree, I'd spend six hours sharpening my axe." --- Abraham Lincoln (1809-1865)

    2 idiots don't make a genius.

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