How do i make a Windows Form which opens a Process as child window by using the toolbar - winforms

How do i make a Windows Form program which in the toolbar you do like File > Open and it shows a Windows Open file dialog and after you selected the exe it will create a child window with the program itself like i open App.exe
it should show then a child window with the icon and the Program Title and the program contents and is this even possible? I'm beginner on coding in WinForms this so i don't know how to do it.
Anyone can Send a code which does this? I never coded WinForms in my life im just asking here so i can learn some coding on WinForms
I've tried to find tutorials but there was none of them that helped me

Related

C# and UI Automation for external exe

I have a desktop application in wpf than open a new external process (exe).
I can detect this external process window is opened/closed with:
Automation.AddAutomationEventHandler(WindowPattern.WindowOpenedEvent,...
But... how to detect new events inside this window? For example, inside the windows, when a new dialog is shown, like print settings subwindow.
Thank you
Regards

Get thumbnail image of the main page of all the running process in window

In my app I want to enable the user to see a small thumbnail, of the main window, for all the running process (that has window).
My app is a regular window desktop application (written in wpf)
I don't want to bring the other processes to foreground before getting the thumbnails
It will be nice if most of the code will be written in .net with PInvoke (if needed) but native is o.k also
Thanks
using DWM I managed to capture the main window for all running process. I've used two great examples (thank a lot for that).
ByBart De Smet For Windows Form:
http://community.bartdesmet.net/blogs/bart/archive/2006/10/05/4495.aspx
For Wpf:
http://www.11011.net/archives/000653.html

How to open a new window in windows form application

I am using windows xp and working in code::blocks 13.12 . I am making a game in which I need to open a new window. I heard that it is impossible to open a window in c but you can open one using windows form application. I have made many projects in c but I am a beginer in windows form application. I do not know how to open a new window in it. Can somebody please help me.
I had searched a lot, but it is still not possible to do what you're trying to do. Automatically, when you run a program in code::blocks, a new window appears, in which the program runs.
Windows Form Application, is something totally different. Don't get confused.
Although, you can change the mode to full screen.

How to detect which Window was selected when using Aero peek

I am not even sure how to ask this question...
I have a WPF app with a main window in full screen. It launches new windows in full screen and makes them a child of the main window upon some user interactions. If the user's machine only has a single monitor this child window is supposed to be the focus until closed. However, I have found that using Windows Aero if the user hovers over my application's taskbar icon a preview of both windows appear. This in itself is not an issue except if you try to select the main window of the app nothing happens because the child window is always on top but the peek functionality gives the illusion that the user can switch to the main window and it looks like a bug.
I would like to detect which window the user is selecting and, if it is the main window, simply close the child window. Alternatively I would like Aero to stop showing multiple windows if only one will work.
Anyone had any experience with this?

How to display chm file inside a wpf window?

For a special reason, I am experimenting to create a small WPF application to just open chm file. I would like the wpf application opens, it displays the chm file in the main window. Can someone show me some code how to do it?

Resources