setparent

How to shell to another app and have it appear in a delphi form

In Delphi I've used ShellExecute for years to launch (and optionally wait for) other applications. Now though, I need to have one of these applications appear in one of my Delphi app forms. I've tried the code below as a simple test to open notepad (which it does) and to display the result within PAnel1 on my form (which it doesnt). Can ...

SetParent COM and WPF

Hello there! I have two screens. one created in vb and the second is in WPF. I must embed the vb inside the wpf. Therefore i had an idea to firstly create a new Windows Form's form, and to use win32 API function "SetParent" in order to embed the vb screen inside the windows form. Secondly, host the winform inside the wpf form using ...

Outlook: How to SetParent(_form.Handle, Outlook.Handle) without Paint issues?

I would like to set the top level window handle of Outlook to be the parent of a Settings form in my add-in (so it appears on top, stays in Outlook, etc). Using SetParent in other Office apps works fine, but in Outlook I get rendering errors. The form doesn't repaint correctly when Outlook is the parent (so if I drag it around or click...

Problems in Showmodal after assigning to Setparent(..).

I created two application MainApps and SubApps, the SubApps has a modal type dialogbox such as login/logout form etc. and its working fine. After I attach it to the MainApps, the Modal Dialog box shows like normal box form. It behaves like "DIALOG.SHOW" instead of "DIALOG.SHOWMODAL"; I am using delphi compiler SubApps buttonclick; ...