Capturing a Window

  • Thread starter Thread starter Anthony Williams
  • Start date Start date
A

Anthony Williams

Does anyone have any ideas how I could go about displaying an external
application's window inside a WinForm?

For example say notepad is running and I start my application, my
application would "capture" the notepad window (I already have the code
to obtain the window's handle) and display it within a panel for example
on the form of my application.

Is such a thing possible?

Regards,
Anthony Williams
 
What would the performance ramifications of such a technique be?
Obviously I'm not going to be capturing notepad, it is an application
which is going to be capturing large quantities of data and updating
frequently.

Regards
Anthony
 
AFAIK ther's no other way of doing it so whatever the performance may be is
immeterial.

Writing a stream of large images to disk is as much of a performance sink as
I can imagine.

Without knowing your exact application I'd be hard-pressed to say. Don't be
optimistic of high capture rates.

--
Bob Powell [MVP]
Visual C#, System.Drawing

Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm

All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.
 
Back
Top