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
0
votes
0 answers

C# host a WPF application in Winform

I have to put a WPF C# application in an old winform hmi. The wpf application must be contained in a panel. To do this, I create a new wpf application process and use the SetParent function to "cast" the wpf window into the panel. I've also included…
Lenns
  • 1
  • 2
0
votes
2 answers

Launch WPF executable and set parent?

I have a WPF executable and I want another program to launch it and set this launching program as the parent windows of my WPF executable (The main purpose is that when the launching program is closed the WPF executable is also shut down). I thought…
tete
  • 4,859
  • 11
  • 50
  • 81
0
votes
1 answer

Issue using Show Desktop with SetParent in WPF

I am working on a simple active desktop replacement for a school that is migrating to Windows 7. The idea is to create a window with a few large buttons with pictures on so that young children who have trouble reading can use them. I am using…
adt100
  • 3
  • 2
0
votes
0 answers

Hook working for notepad.exe but not for cmd.exe

I'm using the code down below to start cmd.exe and move it into my panel. The problem is that my form does not switch to the foreground when I click on the embedded cmd window. It does work when I change Process.Start to notepad.exe. Does anybody…
Eric van Loon
  • 103
  • 1
  • 9
0
votes
0 answers

Process MainWindowHandle return 0 after used SetParent

[DllImport("user32.dll", SetLastError = true)] public static extern IntPtr SetParent(IntPtr MainWindowHandle, IntPtr Panel); public static void Dock(IntPtr OrjinalHandle, Panel panel) { IntPtr DockedHandle =…
ÖMER
  • 15
  • 6
0
votes
0 answers

Problem to get Scrollbars after a SetParent

I try to integrate a window programm into a panel container in vb.net. All is ok but the scroll bars is disabled, dou you know why ? My code is: Dim info As ProcessStartInfo = New ProcessStartInfo info.FileName = "C:\putty\\putty.exe" info.Arguments…
Xavier
  • 43
  • 1
  • 8
0
votes
0 answers

"Transform.SetParent(parent, false)" to another canvas, the gameobject's anchors was changed incorrect

I have a prefab with canvas component, canvas rendermode setting was "Screen Space - Camera". Now, I intantiated the prefab and SetParent to a canvas in current scene. (ep: obj.transform.SetParent(canvasGo.transform, false); ) In unity5.3, the…
0
votes
2 answers

hololens setParent position changes camera lens

I am working on using the Hololens Lens Toolkit Master. The problem is that when you set the SetParent of the lens camera, the camera position of the lens becomes the same as the position of the parent. For example, if A's position is 0, 0, 0 and…
Bert Hu
  • 9
  • 7
0
votes
1 answer

How to set an CustomControl over Outlook Mailgrid?

I'm trying to set my control over the Outlook Mailgrid with SetParent and resize (MoveWindow) and invalidate it if the Mailgrid changed. This works, but on resize the control starts the flicker. My Control is a replacement of Outlook's Mailgrid. To…
Wowa
  • 1,791
  • 1
  • 14
  • 24
0
votes
1 answer

SetParent not Working InvalidOperationException

I recently tried to work on an old project I had an i am not able to get the setparent to work it keeps giving me the "InvalidOperationException" error, here is the code: private void button1_Click(object sender, EventArgs e) { Process…
Austin
  • 47
  • 7
0
votes
0 answers

When calling SetParent with 0 application UI is unresponsive

I have two applications. One is a WinForms application (aka Parent) and the other is a WPF application (Child). Child can run independently as can Parent. I'm working on functionality for Child to behave like a UserControl from within Parent but…
Boumbles
  • 2,473
  • 3
  • 24
  • 42
0
votes
0 answers

issue about embed window to external process using setparent(win32 api)

I'm just trying to embed a window from my process into the window of an external process using the SetParent function, but I find out the application can't switch back after minimizing. The embedded window is WS_OVERLAPPEDWINDOW style, changing it…
0
votes
1 answer

SetParent API under Windows-8 changes font size of application menu and ribbon

I'm have a VB.NET application using the SetParent API to put a Worddocument inside a GroupBox-control of my application. Public Class myForm Dim mwrdApp As Microsoft.Office.Interop.Word.Application Dim mwrdDoc As…
0
votes
1 answer

hosting win32 into wpf not working in windows 7

I developed WPF in Windows 8 and succeed to hosting win32 windows to WPF using pinvoke user32.dll. But when I build using Windows 7, non WPF application not hosting into Form Panel in WPF. It open another windows like launched that application. this…
Akirayjin
  • 657
  • 1
  • 7
  • 11
0
votes
1 answer

WinAPI changing parent of a ListView control

I'm developing an application with tab controls. After clicking on an icon in a tab, a popup window opens and the contents of the tab are moved to the popup window. What I do is simple - change parent of each control within the tab to the popup…
W.B.
  • 5,445
  • 19
  • 29