Click here to Skip to main content
15,910,277 members
Home / Discussions / C#
   

C#

 
JokeRe: running application Pin
Colin Angus Mackay9-Jan-09 10:30
Colin Angus Mackay9-Jan-09 10:30 
GeneralRe: running application Pin
abu rakan9-Jan-09 10:34
abu rakan9-Jan-09 10:34 
GeneralRe: running application Pin
EliottA9-Jan-09 10:50
EliottA9-Jan-09 10:50 
GeneralRe: running application Pin
abu rakan9-Jan-09 10:56
abu rakan9-Jan-09 10:56 
GeneralRe: running application Pin
EliottA9-Jan-09 11:02
EliottA9-Jan-09 11:02 
GeneralHere's your "reply" Pin
leckey9-Jan-09 11:10
leckey9-Jan-09 11:10 
AnswerRe: running application Pin
#realJSOP9-Jan-09 11:02
professional#realJSOP9-Jan-09 11:02 
AnswerRe: running application Pin
DaveyM699-Jan-09 12:32
professionalDaveyM699-Jan-09 12:32 
I'll probably get flamed for this, but I'm responding in the hope that you'll then go away.

What you want to do shouldn't be done - it's not your computer it's the users. They get to decide when their open applications should close. (Hint to possible solution later)

You've previosly asked about stopping running processes - again, you should not do this for the above reasons, plus some may be important to the system and could potentially hang the system totally if stopped.

You've also asked about stopping Explorer. The only valid reasons to do this are if Explorer has crashed in which case your C# program will not be accessible until it's restarted, or if you're writing your own shell - which can't be done in C#.

So - don't attempt to do any of these.

The first however may be acheivable using FindWindow and DestroyWindow from user32.dll. Have a look on pinvoke.net for more info.

Now stop asking the same/rephrased question - do some coding and post back only with specific problems in your code. Mad | :mad:

Dave
BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)
Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia)

Generalyou asked for it Pin
Luc Pattyn9-Jan-09 13:07
sitebuilderLuc Pattyn9-Jan-09 13:07 
QuestionText.Length Command Pin
asquaredtech9-Jan-09 8:51
asquaredtech9-Jan-09 8:51 
AnswerRe: Text.Length Command Pin
JByrd20069-Jan-09 8:58
JByrd20069-Jan-09 8:58 
GeneralRe: Text.Length Command Pin
asquaredtech9-Jan-09 9:15
asquaredtech9-Jan-09 9:15 
GeneralRe: Text.Length Command Pin
Colin Angus Mackay9-Jan-09 10:19
Colin Angus Mackay9-Jan-09 10:19 
AnswerRe: Text.Length Command Pin
Eddy Vluggen9-Jan-09 9:13
professionalEddy Vluggen9-Jan-09 9:13 
GeneralRe: Text.Length Command Pin
asquaredtech9-Jan-09 9:18
asquaredtech9-Jan-09 9:18 
GeneralRe: Text.Length Command Pin
Guffa9-Jan-09 17:19
Guffa9-Jan-09 17:19 
GeneralRe: Text.Length Command Pin
asquaredtech9-Jan-09 19:05
asquaredtech9-Jan-09 19:05 
GeneralRe: Text.Length Command Pin
Guffa9-Jan-09 19:54
Guffa9-Jan-09 19:54 
GeneralRe: Text.Length Command Pin
Luc Pattyn9-Jan-09 9:31
sitebuilderLuc Pattyn9-Jan-09 9:31 
GeneralRe: Text.Length Command Pin
asquaredtech9-Jan-09 10:14
asquaredtech9-Jan-09 10:14 
GeneralRe: Text.Length Command Pin
Colin Angus Mackay9-Jan-09 10:24
Colin Angus Mackay9-Jan-09 10:24 
GeneralRe: Text.Length Command Pin
Luc Pattyn9-Jan-09 10:27
sitebuilderLuc Pattyn9-Jan-09 10:27 
AnswerRe: Text.Length Command Pin
Rutvik Dave9-Jan-09 10:32
professionalRutvik Dave9-Jan-09 10:32 
AnswerRe: Text.Length Command Pin
Henry Minute9-Jan-09 10:51
Henry Minute9-Jan-09 10:51 
GeneralRe: Text.Length Command Pin
Colin Angus Mackay9-Jan-09 11:04
Colin Angus Mackay9-Jan-09 11:04 

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.