Results 1 to 6 of 6

Thread: MDI with process

  1. #1

    Thread Starter
    Member
    Join Date
    Sep 2005
    Posts
    49

    MDI with process

    Evening! Can anyone explain how to launch an external process such as explorer or notepad, and encompass that in an mdi form? Thanx

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  3. #3

    Thread Starter
    Member
    Join Date
    Sep 2005
    Posts
    49

    Re: MDI with process

    Cool...one question. It works perfect for notepad.exe... How do i get this to work for let's say explorer.exe. When you try, the app is not contained in the mdi app

    Thanx a bunch

  4. #4
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: MDI with process

    Dunno. Maybe some windows refuse to be made children.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  5. #5
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: MDI with process

    I just tried iexplore and explorer with a break point on the SetParent and it worked, indicating that there is some delay before the window be parented. Couldn't conjecture as to the reason. Also note that when I tried it with explorer when another explorer window was already open it failed with an exception because the existing process opened the new window and the new process exited. Explorer also threw an exception when closing its parent window.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  6. #6

    Thread Starter
    Member
    Join Date
    Sep 2005
    Posts
    49

    Re: MDI with process

    so i am guessing explorer cannot be used...although ie works but when you browse to anything it goes to a new window

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