Results 1 to 6 of 6

Thread: how to run another program from a windows application

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Oct 2003
    Posts
    29

    how to run another program from a windows application

    i have created a windows application quite a while ago, AddressBook.exe. Now i'm creating another windows application, say WinApp1, which i need to have an address book in it.

    how do i run the AddressBook.exe from WinApp1? i would like to run the AddressBook when i clicked an icon on the toolbar of WinApp1. i don't need AddressBook to run as an MDI child of WinApp1, just as a modal form.

  2. #2
    Frenzied Member
    Join Date
    Nov 2003
    Posts
    1,489
    if you want it as a modal form, you should integrate that program into your new one. Unless the addressbook.exe is designed to be on top always, you won't have the expected results.

    to run another app though, use Process.Start("name here")

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Oct 2003
    Posts
    29
    Originally posted by Andy
    if you want it as a modal form, you should integrate that program into your new one.
    it's an issue with this, can't be done.

    Originally posted by Andy
    Unless the addressbook.exe is designed to be on top always, you won't have the expected results.

    to run another app though, use Process.Start("name here")
    hmmm... always on top or won't have expected results? means addressook will run and may not be on top. user need to interactively click on the taskbar for the addressbook to show up?

    i can make sure the addressbook is shown on top of the app when it started but not always on top set, right?
    OR can i run the addressbook as the mdi child of my new app? how to do that?

  4. #4
    Lively Member
    Join Date
    Apr 2003
    Posts
    114
    If you really want to do it this way then as an idea you could create a blank modal form that is opened when the icon is pressed. In that form, launch the vb6 app and call the setparent api from the vb.net app or the vb6 app and pass in the window handle of the vb6 application. The blank modal form in vb.net would be the parent. Just an idea.
    I can do all things with VB.

  5. #5
    Frenzied Member
    Join Date
    Nov 2003
    Posts
    1,489
    is this a vb6 app? I assumed it is a .net app but you just were using vb6 terminology. If it's vb6, you might wanna check out the classic vb forum instead. This forum tends to bend toward the .net world of vb.

  6. #6

    Thread Starter
    Junior Member
    Join Date
    Oct 2003
    Posts
    29
    it's a .net app. if possible i dont want to get in touch with API. i'm still a baby with that

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