How to make App B modal in App A?


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: How to make App B modal in App A?

Hybrid View

  1. #1
    Måns Guest

    How to make App B modal in App A?


    Can anyone solve this one?

    I have written an application ("App A") that creates an instance of "App
    B" with CreateObject("appb"). Then i call the method ".ShowProperties", and
    that method shows a Form in "App B" that contains (you problably already
    guessed that), properties of "App B".

    My problem is that i do want to show that property-form modal in "App A"
    so that it seems to the user that "App A" and "App B" where one single application.

    I realy have to do it this way and can´t make "App B" an activex-control
    or dll.

    I have the understanding this trick would invalve problably som seriues API-calling
    to fool windows and "App A" that "App B":s window belongs to "App A" and
    infact is modal over it.

    I could of cource make "App B":s form systemmodal but i think this is to
    annoying for the user so i realy would like to solve this one "clean".

    Anyone have a solution to this? Any help would be nice...

  2. #2
    Juergen Thuemmler Guest

    Re: How to make App B modal in App A?

    > I have written an application ("App A") that creates an instance of "App
    > B" with CreateObject("appb"). Then i call the method ".ShowProperties",

    and
    > that method shows a Form in "App B" that contains (you problably already
    > guessed that), properties of "App B".


    It is possible, but not with VB alone. Needs a hook to a foreing app.
    If interested, I can send you a sample by mail.

    Juergen.



  3. #3
    Juergen Thuemmler Guest

    Re: How to make App B modal in App A?

    > I have written an application ("App A") that creates an instance of "App
    > B" with CreateObject("appb"). Then i call the method ".ShowProperties",

    and
    > that method shows a Form in "App B" that contains (you problably already
    > guessed that), properties of "App B".


    It is possible, but not with VB alone. Needs a hook to a foreing app.
    If interested, I can send you a sample by mail.

    Juergen.



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center