473,385 Members | 1,863 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

[C#.NET] Screenshot a Window

Hello,

I need some help please. I already know how to capture the full screen, because the .NET framework simplifies it a lot. Anyway, I was wondering, is it possible to capture a Window / Application?

For Example, I want it to work like this:

1. User selects 'WINDOW Screenshot' Mode.
2. They select Capture Screenshot.
3. They have to then click the window they want to capture.

And thats all I need basically, but I think I need the software to find out the mouse position and all that.

All help will be appreciated :),

Thanks a lot.
Jun 24 '07 #1
5 8007
kenobewan
4,871 Expert 4TB
Here is an article that may help:
Capture a Screen Shot
Jun 25 '07 #2
Thanks!

But jeej, it looks quite complicated :). I know to capture the full desktop is really easy, and only uses like 6 lines or something.

Thanks again.
Jun 25 '07 #3
Thanks!

But jeej, it looks quite complicated :). I know to capture the full desktop is really easy, and only uses like 6 lines or something.

Thanks again.
Hi..
I am in need to capture a full desktop..
Ur help is always appreciated..

Regds,
Chinnu
Jul 16 '07 #4
@kvalasa
Take fullscreenshot
Source: http://pastebin.com/f4045d6f4
Project: <removed>
How to use:
ImageCapture(Width, Height, X, Y); [returns Image]
ImageSave(Image Img);

I'm also trying to capture just a window, but I don't know how to get the active window, if I could get the window I could just get it's bounds and send to my function, that's all I need, but how?
Apr 21 '09 #5
Screenshot full/window: http://pastebin.com/f17a2437c
Global shortcuts class: http://pastebin.com/fc755514
Apr 22 '09 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

8
by: gregory_may | last post by:
Is there a way to grab a "Screen Shot" that includes "Tool Tips"? I saw this code someplace, cant remember where. But it doesnt grab "Tool Tips". Is there a better way to do this in .net?...
1
by: Matthew Adams | last post by:
Hi, I am trying to create a screenshot of only a window instead of the entire desktop. Any help you could give me would be great. Thanks.
1
by: David Lindgren | last post by:
Hello! I am using the DrawString method with different StringAlignments passed to it and the result varies alot! Take a look at this screenshot:...
1
by: Ralph Krausse | last post by:
How can I run a function in my javascript in ASP.NET but have the function defined in the codebehind file? Thanks Ralph Krausse www.consiliumsoft.com Use the START button? Then you need...
6
by: M | last post by:
Hello, I'm looking for a way to get a screenshot of the current browser (or current tab browser) from a javascript. Any clue is welcome ! Thanx. M
2
by: suspended | last post by:
I recently saw an application which uses a frameless popup while loading (i.e. a popup appears on top of the application, not inside the browser window). How can such popup be displayed in the...
1
by: stan.wozniak | last post by:
I am trying to take a screenshot of the window contents. I have been using WM_PRINT, WM_PRINTCLIENT, but I can't get them to work. I am aiming to get contents of the window (even the area that is...
15
by: Nayan | last post by:
Hi, Can anyone suggest working sample of capturing a window's picture? I tried a few, but couldn't get the image. I don't know why those functions are not getting the image. Note: I want the...
2
by: vertozia | last post by:
Hey there, ive been having difficulty placing an image, this is my screenshot, and what ive done so far: http://img341.imageshack.us/img341/9894/gridwg2.jpg /** * ConnectFourGUI * Provide...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.