Results 1 to 3 of 3

Thread: need help stopping ActiveX parent closing plz

Threaded View

  1. #1

    Thread Starter
    New Member
    Join Date
    Apr 2008
    Posts
    10

    need help stopping ActiveX parent closing plz

    This is my first post and I've read many threads and tried many things to get this to work, sadly with no joy

    Basically I have an application which is hosted in another application and would like to stop the host application from closing with a lock/unlock button on my application.

    I have built a subclassing activeX dll in vb6 using various code snippets and stuff which is attached here with source code and test app.

    Basically it works by getting handle under mouse, then getting parent handle and subclassing to stop a window being closed. It can also be used to display system messages received by the subclassed handle. It works fine when referenced in another vb app and used to subclass that application. and when registered and referenced in our application all the functions work but subclassing the app doesn't work.

    I have read that you can't subclass an external app without your own app running in the same memory space. If my application can load an activeX dll can i just make part of my dll or it's code run in the same memory space as its host? how do i do it??

    I'd like to be able to stop any application/form closing without having to use an external dll. And if possible I'd like it to be done in vb6 as this is all I have to work with.

    any help would be appreciated.
    Attached Files Attached Files
    Last edited by ernster; Apr 9th, 2008 at 05:04 AM.

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