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

IE Window not coming to foreground, after it was setParent to windows form

I have a windows form with Tabs, in each tab i have IE browsers embedded in it using SetParent() api. SetParent((IntPtr)explorer.HWND, parent); There is another application say notepad is on top of my form and when I click on embeded IE browser,…
NKRB
  • 45
  • 3
1
vote
1 answer

setParent works, but without minExpanding

I'm a 3D technical artist, using pyqt in Maya, a bit of a novice with pyqt. I have 2 pyqt UI files created in Designer, and I load them into Maya with uic.loadUiType() I want to assign the 2nd UI file as a child of a tab in the first UI. I do that…
dcole
  • 11
  • 1
1
vote
0 answers

Question about SetParent API, it doesn't work on Windows 11

Good evening everyone So sorry for my mediocre english I have a question about the SetParent API. When I run the window on Windows 10, it works correctly and contains any program I want But when the program is executed on Windows 11, it does…
1
vote
0 answers

Layer or hierarchy problem for GameObject

In my Unity project, I made a prefab to rendering images from web sources by URL. However, when testing the app, it displayed the images like this: There are two image windows, but you can see, the image in the first opened window is floating over…
Chenchen
  • 35
  • 6
1
vote
1 answer

Is it possible to hide hourglass during Process Start?

Background I am working on a application that make extensive use of SetParent functionality in order to play several video players into a single application while keeping memory of main applicaton under control. Everytime the user requests to see a…
1
vote
0 answers

How to run external application in panel when SetParent() does not work C#

I am trying to trigger and application (in this case SAP2000) inside a C# program so that the application is shown in a panel. I have searched in different posts and it seems that the 'SetParent()' strategy is the most suitable for this purpose.…
David M
  • 23
  • 3
1
vote
2 answers

Problems in setparent new cmd windows 10

For some time, I have created a console application (cmd & powershell) by integrating the multi tab. I'm using the setparent function of user32. Everything works except when I move the parent window. It is impossible to access the child window. It…
TheRake66
  • 11
  • 1
1
vote
1 answer

Managed method for SetParent() on form

How can I show a form as a child of a window that isn't in my program? I have a window handle to what should be the parent, but I don't see any managed method for SetParent() on a form. Is there one? It also seems that the form.Show() method only…
Brad
  • 159,648
  • 54
  • 349
  • 530
1
vote
1 answer

How to start a process and set its main window as a child window of my app

I am starting a new process from my c# application. After the process created I set its main window as a child of my app window using the ManagementEventWatcher and SetParent. The problem is that when I write in my query WITHIN 2 every thing works…
e.s
  • 214
  • 3
  • 16
1
vote
2 answers

c# exe encapsulation in wpf not work

I need to encapsulate exe on my wpf application. My wpf application is very large and with many UserControls. To do this, i've start the exe from my code, then get the handle and used the "setParent" to "bind" the exe to my application, but the…
ste
  • 21
  • 3
1
vote
1 answer

Passing ffmpeg stream to c# window

Is it possible to pass FFMPEG video stream to C# window? Now it opens as new process in new window, I just simply want to pass it to my own SessionWindow. At this moment I execute ffplay like this: public void ExecuteCommandSync(String command,…
KKKk
  • 93
  • 2
  • 15
1
vote
1 answer

Trying to setParent during update function gives error

I am trying to spawn a star at a set time interval in Unity. But I would like to parent these stars not to clutter my inspector. But when I try to do this it gives "NullReferenceExeption: Object reference not set to an instance of an object." I have…
Mark
  • 132
  • 3
  • 13
1
vote
2 answers

GUI freeze when using Windows::SetParent on QApplication

It is about the communication two Qt programs under Windows. One program, let's call him Client, The other program, called Server. The situation: I want to place the Client inside a QWidget of the server. Windows already supplies some nice…
one
  • 511
  • 5
  • 17
1
vote
1 answer

Embed c++ opengl window in Java window

i am trying to embed a c++ opengl window in a java window. I'm able to send the HWND of the opengl window to the java window through sockets. I'd rather not use JNI for it as i want to have 2 seperate process (the why doesn't matter). I made my…
0
votes
1 answer

Move the window of another program and remove the borders

I'm working on a project to embed another program inside a Panel. I got this to work but I can't seem to place the window right inside the form. Picture: I'm using MoveWindow and SetWindowLong with no luck so far.. this is my Onload event; Dim…
Amy Pham
  • 1
  • 2