Click here to Skip to main content
16,005,473 members
Home / Discussions / C#
   

C#

 
GeneralRe: how to use sound files in C# ? Pin
crusher_shark11-Jan-06 12:15
crusher_shark11-Jan-06 12:15 
GeneralRe: how to use sound files in C# ? Pin
Christian Graus11-Jan-06 12:18
protectorChristian Graus11-Jan-06 12:18 
GeneralRe: how to use sound files in C# ? Pin
crusher_shark11-Jan-06 12:29
crusher_shark11-Jan-06 12:29 
AnswerRe: how to use sound files in C# ? Pin
mav.northwind12-Jan-06 2:04
mav.northwind12-Jan-06 2:04 
QuestionIP Address of a client Pin
Gywox11-Jan-06 6:28
Gywox11-Jan-06 6:28 
AnswerRe: IP Address of a client Pin
User 665811-Jan-06 7:25
User 665811-Jan-06 7:25 
QuestionGetting Process informations through C# Pin
coolestCoder11-Jan-06 6:10
coolestCoder11-Jan-06 6:10 
AnswerRe: Getting Process informations through C# Pin
Dave Kreskowiak11-Jan-06 7:28
mveDave Kreskowiak11-Jan-06 7:28 
There is nothing that exposes the information you want in the kind of detail you want.

You'll have to kludge something together to monitor how long a web page has been open on a particular browser window. Basically, you monitor the Process list and keep track of how many browser windows are open, what their current URL's are, what their primary Window handle is, and at what time you saw this information in your list. You can use the Process class for this and the Shell.Application object. Google for it.

Now, you have to poll the Process class for the current list and see if the number of Shell windows has changed, or if any of the IE Window handles have changed, or the URL's have changed. Whey do, you'll have your information.

Oh! This will also have the side effect of monitoring Explorer windows too.


For other processes, well, you're really S.O.L. because you there's just no way to monitor what every process does. There is no API for this, unless you want to write your own debugger, and debug every process on the machine at the same time. NOT a good idea!


RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

QuestionRe: Getting Process informations through C# Pin
coolestCoder11-Jan-06 22:05
coolestCoder11-Jan-06 22:05 
QuestionSmtpClient 2.0 Framework, Bug - feature? Pin
James Simpson11-Jan-06 6:01
James Simpson11-Jan-06 6:01 
AnswerRe: SmtpClient 2.0 Framework, Bug - feature? Pin
Dave Kreskowiak11-Jan-06 7:21
mveDave Kreskowiak11-Jan-06 7:21 
GeneralRe: SmtpClient 2.0 Framework, Bug - feature? Pin
James Simpson11-Jan-06 22:30
James Simpson11-Jan-06 22:30 
QuestionHow to get Connection to Vodafone Pin
Frank23111-Jan-06 5:55
Frank23111-Jan-06 5:55 
AnswerRe: How to get Connection to Vodafone Pin
Frank23111-Jan-06 6:08
Frank23111-Jan-06 6:08 
QuestionHow to get window handle? Pin
jayshml11-Jan-06 4:51
jayshml11-Jan-06 4:51 
Questioncatch an application/process start event... Pin
batmanAgen11-Jan-06 4:43
batmanAgen11-Jan-06 4:43 
AnswerRe: catch an application/process start event... Pin
mikailcetinkaya11-Jan-06 5:48
mikailcetinkaya11-Jan-06 5:48 
GeneralRe: catch an application/process start event... Pin
coolestCoder11-Jan-06 6:18
coolestCoder11-Jan-06 6:18 
AnswerRe: catch an application/process start event... Pin
Koushik Biswas11-Jan-06 16:05
Koushik Biswas11-Jan-06 16:05 
QuestionThe path to "My Document" folder Pin
Tony D. Abel11-Jan-06 4:16
Tony D. Abel11-Jan-06 4:16 
AnswerRe: The path to "My Document" folder Pin
Judah Gabriel Himango11-Jan-06 5:04
sponsorJudah Gabriel Himango11-Jan-06 5:04 
AnswerRe: The path to "My Document" folder Pin
Colin Angus Mackay11-Jan-06 5:16
Colin Angus Mackay11-Jan-06 5:16 
AnswerRe: The path to "My Document" folder Pin
Curtis Schlak.11-Jan-06 9:31
Curtis Schlak.11-Jan-06 9:31 
Question[GDI+] avoid flickering for a moving panel Pin
Sasuko11-Jan-06 4:07
Sasuko11-Jan-06 4:07 
AnswerRe: [GDI+] avoid flickering for a moving panel Pin
Judah Gabriel Himango11-Jan-06 5:06
sponsorJudah Gabriel Himango11-Jan-06 5:06 

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.