Raptors Fan
May 25th, 2001, 11:43 AM
Is it possible to run applications, for example MS Word, inside a VB application? Or how about running Word inside IE? I think it would be a cool thing to do, but I'm not sure if it is technically possible?
|
Click to See Complete Forum and Search --> : Running Apps inside VB apps Raptors Fan May 25th, 2001, 11:43 AM Is it possible to run applications, for example MS Word, inside a VB application? Or how about running Word inside IE? I think it would be a cool thing to do, but I'm not sure if it is technically possible? Raptors Fan May 25th, 2001, 12:00 PM By the way, I don't mean just calling up an application but actually having the application embedded inside a VB application, that is, for example, Word would be inside an MDIForm or on a form somehow. Is that possible? shree May 26th, 2001, 10:36 AM You mean you don't want to just shell to another application. But you can grab the program's handle using a function such as hWindow = FindWindow(vbNullString, "Calculator") Once you have the handle of a window, you can do so many things with it. For example, set it always on top, and position it at a precise location over your form. Then it will appear as if it is on your form. One problem is what to do if the user tries to close, minimize or maximize the application. The solution is to remove the options altogether. If this idea appeals to you, then go on, we'll tell you how to remove the option, if you don't already know. Or you may use the OLE container control for some applications. Raptors Fan May 28th, 2001, 03:54 PM Yes, I don't just want to shell another application, but I guess like OLE, such like running Excel inside Word. For example, can I make an instance of Word as a child form? Meaning, Word would be contained inside the MDI form. By the way, I couldnt find the control you mentioned "OLE container control", I did see "Remote Shell OLE control module" listed in the components... is that the one you meant? Also, similar to this, would it be possible to do the same with Internet Explorer, meaning, an instance of Word or whatever application be embedded on a webpage, thus contained by IE. I really want to know if this is possible. codeguru.com
Copyright Internet.com Inc., All Rights Reserved. |