Display an another application's window in a WPF application [closed] - c#

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
I want to display another application's window that is running concurrently in my WPF application. Like a live display, I need to be able to see real-time changes to the window (in this case, Chrome's) even if it is hidden behind other windows while my WPF application is running. It's kind of like the image below:
I understand I have to get the window's handle first, but how would I be able to display an external window like this? Is there a way I can use the Win32 API for this function?

Try looking into the Frame element (documentation here).
<Frame Source="https://www.google.com"/>

Related

Advanced Terminal on Windows Forms

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 hours ago.
Improve this question
I want to do the terminal (just command line / powershell / ssh), where user can work as usual, but also I want a handler which can control and impact on everything that is happening in terminal (input and output) and perform some actions with interface.
What is a better approach to implement it with Windows Forms?
I tried to use https://github.com/dwmkerr/consolecontrol, but can't find how to make normal terminal (where arrows, tab and color work)?
Many thanks.

c# windows 10 permanent notification [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
is it possible to create a permanent notification at the notification bar in Windows 10?
Also it is necessary to do this in a windows form application and not an universal windows app.
Thanks for you help.
To do it in a WinForms app you'll need to use the desktop bridge to create the notifications.
It's not possible to have a toast that can't be dismissed from the action centre (which is what I assume you mean by "notifications area") but you can detect when it's removed and then add another back in. There are already a number of apps which do this as a way of having "permanent notifications".

How to show a WPF Window in front of a UWP app in fullscreen mode? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I'm looking for a way to make a WPF window stay on top of a fullscreen UWP app. I found numerous mentions of Window.Topmost, but it only works with a windowed app.
For a little bit of context, the idea is to create a virtual keyboard that I could launch from the app (with a brokered runtime component). I do know that there are some keyboard implementations, but they don't do the trick since they basically edit the textboxes themselves (and I need it to be able to also interact with WebViews).
Thanks :)

New button on top corner of any Windows App C# [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
Somebody know how to add a button on top right corner of any windows app loaded?, and manage a controller to interacting with them.
Really what I want is a method to set the property "Always on top" of any form.
I appreciate any help to do this posible... :)
(my programing language is c#)
It is possible to do so but prepare yourself to get dirty. Really dirty.
See this CodeProject article: Add Your Control On Top Another Application. Basically that guy is drawing a kind of custom control into another app's title bar.
In addition to this, this article about global system hooks might get handy for you as well.

How to listen for key strokes without Windows Forms .NET [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
How can I create a key listener that listens for strokes while a program is running in the background, or as a service, for instance?
I already have a loop running with Thread, and I just need to be able to set and unset key bindings. Everywhere I searched all I got were Windows Forms solutions D:
You mentioned "Windows Forms" so I assume you are on Windows. You could register a hook function to accomplish this:
http://msdn.microsoft.com/en-us/library/windows/desktop/ms644990(v=vs.85).aspx
The function will reside in a DLL that is loaded externally. If you need to communicate with a console or application you will need to handle the IPC yourself.
This will allow you filter all keyboards events, even those bound for the system.

Categories