Questions tagged [setparent]

SetParent is a window-handling function of the Microsoft Windows API. It is used to change the parent window of a given window.

SetParent is a window-handling function of the Microsoft Windows API. It is used to change the parent window of a given window.

53 questions
11
votes
3 answers

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…
Brian Frost
  • 13,334
  • 11
  • 80
  • 154
10
votes
3 answers

Hosting WPF app inside non-WPF app using WIn32 SetParent()

I have a WPF application that I want to look like it is hosted inside another - non-WPF - application. In real life this non-WPF app is an ActiveX inside Internet Explorer, but for the sake of illustrating the problem I use a simple Windows Forms…
jonsb
  • 2,016
  • 3
  • 21
  • 24
5
votes
3 answers

Using SetParent to make an Access Form escape from Access

I have been trying to get a Microsoft Access for to 'escape' from the main Access window so that I can hide the Access window and just show the form on the desktop so that it can be placed alongside other applications easily. At first I found some…
ec2011
  • 570
  • 6
  • 20
4
votes
2 answers

Repainting problem with MDI child created by SetParent API

I have a legacy app written in C that consists of a main window and several mdi children opened from menu options. To allow new mdi children to be written in C# I have created a C++ COM interop layer that is called by the C code and in turn calls…
4
votes
5 answers

Problem positioning window when using SetParent()

I'm trying to set childForm as the child of the main Excel window using the SetParent API through PInvoke: Form childForm = new MyForm(); IntPtr excelHandle = (IntPtr) excelApplication.Hwnd; SetParent(childForm.Handle,…
G S
  • 35,511
  • 22
  • 84
  • 118
4
votes
1 answer

Opening Lotus Notes inside a VB.NET form

I've been reading a lot here for almost 5 years already but it's my first post here. I'm currently working on a VB.NET Project in which I need to have Lotus Notes opened inside a Window Form. I tried using SetParent functionality as I've seen here…
CurseStacker
  • 1,079
  • 8
  • 19
3
votes
0 answers

Embed External Application in C# Form

I am trying to embed an external program in my exe using C#. This seems to work in a few cases but not in others. Is there a difference between the 2 EXE's? Here is my code. Process p = new Process(); p.StartInfo.FileName = "calc.exe"; // Does not…
Sudhir B
  • 59
  • 1
  • 4
3
votes
0 answers

Setting Client Area Tansparency in WPF Child Windows

So, I've been experimenting with child windows in WPF, using SetParent, and trying to set up some transparency on the child window. It looks like I've got a bit of a catch-22. If I set the child's WindowStyle = None, as it seems is required for…
Hexum064
  • 349
  • 2
  • 14
3
votes
2 answers

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…
XBasic3000
  • 3,418
  • 5
  • 46
  • 91
3
votes
1 answer

Setting parent of the form to "FindWindow"

I am making an overlay. I have this code here using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using…
Layne Wapp
  • 43
  • 11
2
votes
1 answer

CDialog ShowWindow problem

I have a SDI application. In the application there's a modeless dialog which is used to show some message like communicating with the server during doing work. Question is, when the dialog's parent window is set to main frame, the ShowWindow method…
Wilbur
  • 21
  • 2
2
votes
1 answer

Release child window back to desktop?

I am using these libraries to find a window and set it's handle to a new handle, like a tab in my program. However, I am having a difficult time releasing the program back to the desktop. Once I close my main application, the window that was…
The Newbie
  • 379
  • 4
  • 18
2
votes
1 answer

WPF SetParent throwing an ArithmeticException

I have been developing an add on with C# and WPF to an application. It's been working fine until launched on a Win7 machine. The symptoms are that a Microsoft .NET Framwork's "Unhandled exception" dialog pops up on startup for…
am9417
  • 994
  • 8
  • 18
2
votes
1 answer

SetParent of window before the window opened

I am using SetParent to host external app in my app (using WindowsFormHost). The flow is like that: I open my app I open the external app programmaticly I use SetParent to host it within my app. Due to the flow above, when the external app opens,…
Ron
  • 3,975
  • 17
  • 80
  • 130
2
votes
2 answers

Embedding powerpoint slide show into a controller

I have a wpf application that embeds powepoint file into a webBrowser control. I managed to implement that functionality using the below sample code. But whenever i run the ppt file the slide show popups into the screen for a few seconds and then…
Dimith
  • 379
  • 2
  • 12
1
2 3 4