|
-
Aug 4th, 2004, 10:48 PM
#1
Thread Starter
Junior Member
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.
-
Aug 4th, 2004, 10:57 PM
#2
Frenzied Member
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")
-
Aug 4th, 2004, 11:37 PM
#3
Thread Starter
Junior Member
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?
-
Aug 5th, 2004, 03:20 PM
#4
Lively Member
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.
-
Aug 5th, 2004, 09:34 PM
#5
Frenzied Member
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.
-
Aug 6th, 2004, 12:34 AM
#6
Thread Starter
Junior Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|