Results 1 to 3 of 3

Thread: need help stopping ActiveX parent closing plz

  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.

  2. #2
    King of sapila
    Join Date
    Oct 2006
    Location
    Greece
    Posts
    6,763

    Re: need help stopping ActiveX parent closing plz

    Hi.
    I'm witting because you asked me to help you.
    Sadly i don't code in VB6.
    If you can give the code to .net (i show it's not very long), i'll try to help.
    Or i'll try to convert it if i have time but i'm a busy man

  3. #3

    Thread Starter
    New Member
    Join Date
    Apr 2008
    Posts
    10

    Re: need help stopping ActiveX parent closing plz

    Hey Sapator

    Thanks for offering to help with my problem. I managed to get the company to buy a copy of v s 2008 ad would still like to try and tackle this problem.

    Now I have .net, if you can still help it would be great.

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