Click here to Skip to main content
15,902,840 members
Home / Discussions / C#
   

C#

 
Questionhow to find list of all the url tabs of IE presently running (multiple tabs) its name as application for each find cpu usage? Pin
namratabuddhadev12-Nov-09 6:58
namratabuddhadev12-Nov-09 6:58 
AnswerRe: how to find list of all the url tabs of IE presently running (multiple tabs) its name as application for each find cpu usage? Pin
The Man from U.N.C.L.E.12-Nov-09 9:43
The Man from U.N.C.L.E.12-Nov-09 9:43 
AnswerRe: how to find list of all the url tabs of IE presently running (multiple tabs) its name as application for each find cpu usage? Pin
Shameel12-Nov-09 22:46
professionalShameel12-Nov-09 22:46 
QuestionUrlEncode Problem Pin
snouto12-Nov-09 6:55
snouto12-Nov-09 6:55 
AnswerRe: UrlEncode Problem Pin
Abhishek Sur12-Nov-09 7:00
professionalAbhishek Sur12-Nov-09 7:00 
AnswerRe: UrlEncode Problem Pin
Shameel12-Nov-09 7:30
professionalShameel12-Nov-09 7:30 
AnswerRe: UrlEncode Problem Pin
Luc Pattyn12-Nov-09 7:39
sitebuilderLuc Pattyn12-Nov-09 7:39 
QuestionHow to capture screenshot of a web site in unattended mode? Pin
kskarun12-Nov-09 6:03
kskarun12-Nov-09 6:03 
I need to write a .NET application that captures screenshots of various web pages periodically. The application needs to run as a windows service in unattended mode - when there is no user session or when the workstation is locked. A situation similar to: (http://stackoverflow.com/questions/1445788/c-screenshot-of-process-under-windows-service), only, I need to do this on web pages rather than processes.

When I try to use PrintWindow API, I am able to capture inactive or hidden windows, but get a black image when the workstation is locked. Tried this approach (www.devnewsgroups.net/group/microsoft.public.dotnet.framework.windowsforms/topic34231.aspx) but doesn't work.

I know this is possible since there are apps like WebShot (www.websitescreenshots.com) that are able to do it - capture screenshots of web pages even when the workstation is locked or when it runs as a service.

What am I missing? How do I get this to work?

More on my approach - I'm using the .NET WebBrowser control created programmatically. I load the webpage in the browser control and capture the image from it using the PrintWindow API. This I'm able to do whether the control is visible or not, but it trips me up when the workstation is locked.

Thanks much for your time.
AnswerRe: How to capture screenshot of a web site in unattended mode? Pin
Abhishek Sur12-Nov-09 6:57
professionalAbhishek Sur12-Nov-09 6:57 
AnswerRe: How to capture screenshot of a web site in unattended mode? Pin
Saksida Bojan12-Nov-09 7:36
Saksida Bojan12-Nov-09 7:36 
GeneralRe: How to capture screenshot of a web site in unattended mode? Pin
Abhishek Sur12-Nov-09 8:00
professionalAbhishek Sur12-Nov-09 8:00 
Questionc# vs c++ Pin
kumar sanghvi12-Nov-09 5:26
kumar sanghvi12-Nov-09 5:26 
AnswerRe: c# vs c++ Pin
The Man from U.N.C.L.E.12-Nov-09 5:29
The Man from U.N.C.L.E.12-Nov-09 5:29 
AnswerRe: c# vs c++ Pin
Not Active12-Nov-09 5:30
mentorNot Active12-Nov-09 5:30 
GeneralRe: c# vs c++ Pin
The Man from U.N.C.L.E.12-Nov-09 5:32
The Man from U.N.C.L.E.12-Nov-09 5:32 
GeneralRe: c# vs c++ Pin
Blubbo12-Nov-09 8:30
Blubbo12-Nov-09 8:30 
Questiona french question Pin
boudj12-Nov-09 5:01
boudj12-Nov-09 5:01 
AnswerRe: NOT a french question Pin
Luc Pattyn12-Nov-09 5:07
sitebuilderLuc Pattyn12-Nov-09 5:07 
AnswerRe: a french question Pin
The Man from U.N.C.L.E.12-Nov-09 5:13
The Man from U.N.C.L.E.12-Nov-09 5:13 
AnswerRe: a french question Pin
Saksida Bojan12-Nov-09 6:05
Saksida Bojan12-Nov-09 6:05 
AnswerRe: a french question Pin
Paulo Zemek13-Nov-09 6:48
Paulo Zemek13-Nov-09 6:48 
QuestionInheritance Pin
kumar sanghvi12-Nov-09 4:48
kumar sanghvi12-Nov-09 4:48 
AnswerRe: Inheritance Pin
Eduard Keilholz12-Nov-09 4:51
Eduard Keilholz12-Nov-09 4:51 
AnswerRe: Inheritance Pin
Xmen Real 12-Nov-09 4:51
professional Xmen Real 12-Nov-09 4:51 
AnswerRe: Inheritance Pin
PIEBALDconsult12-Nov-09 4:57
mvePIEBALDconsult12-Nov-09 4:57 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.