Click here to Skip to main content
15,893,564 members
Home / Discussions / C#
   

C#

 
GeneralRe: Enum problem in PropertyGrid Pin
Xmen Real 17-Dec-08 1:49
professional Xmen Real 17-Dec-08 1:49 
GeneralRe: Enum problem in PropertyGrid Pin
Lev Danielyan17-Dec-08 2:13
Lev Danielyan17-Dec-08 2:13 
GeneralRe: Enum problem in PropertyGrid Pin
Xmen Real 17-Dec-08 2:16
professional Xmen Real 17-Dec-08 2:16 
GeneralRe: Enum problem in PropertyGrid Pin
Lev Danielyan16-Dec-08 19:59
Lev Danielyan16-Dec-08 19:59 
QuestionProblem using Process.Start("notepad.exe") ... Process (notepad) is launched with no appearance of notepad! Pin
fulbright16-Dec-08 17:17
fulbright16-Dec-08 17:17 
AnswerRe: Problem using Process.Start("notepad.exe") ... Process (notepad) is launched with no appearance of notepad! Pin
Expert Coming16-Dec-08 17:22
Expert Coming16-Dec-08 17:22 
GeneralRe: Problem using Process.Start("notepad.exe") ... Process (notepad) is launched with no appearance of notepad! Pin
fulbright16-Dec-08 17:56
fulbright16-Dec-08 17:56 
AnswerRe: Problem using Process.Start("notepad.exe") ... Process (notepad) is launched with no appearance of notepad! Pin
Dave Kreskowiak16-Dec-08 17:34
mveDave Kreskowiak16-Dec-08 17:34 
Windows Services run under a different desktop than the one the user sees. Any window or process launched from that service will appear on that alternate desktop. There is no "switch" to throw to see that desktop.

Like the other poster said, there's an option to allow the service to interact with the desktop, but, this may not be a good idea to turn on. This opens possible security concerns with a service being allowed different permissions than the user that is logged in.

Also, what if there is no user logged into the machine?? What's this code going to do in the event it never gets a response?? How will this service track the number of Notepad instances that it launched?? Yada, yada, yada, ... Basically, if your service needs to interact with the user, it's best done through interprocess communication between the service and a seperate interface app that the user launches, not through "Allow interact with desktop".


A guide to posting questions on CodeProject[^]



Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic
     2006, 2007, 2008




GeneralRe: Problem using Process.Start("notepad.exe") ... Process (notepad) is launched with no appearance of notepad! Pin
fulbright16-Dec-08 18:06
fulbright16-Dec-08 18:06 
GeneralRe: Problem using Process.Start("notepad.exe") ... Process (notepad) is launched with no appearance of notepad! Pin
Dave Kreskowiak17-Dec-08 2:06
mveDave Kreskowiak17-Dec-08 2:06 
QuestionDetecting a USB drive arrival/removal, whose Drive Letter has been removed Pin
G. Myers16-Dec-08 11:19
G. Myers16-Dec-08 11:19 
QuestionClass inference Pin
DwR16-Dec-08 9:28
DwR16-Dec-08 9:28 
AnswerRe: Class inference Pin
Christian Graus16-Dec-08 10:00
protectorChristian Graus16-Dec-08 10:00 
AnswerRe: Class inference Pin
Wendelius16-Dec-08 11:47
mentorWendelius16-Dec-08 11:47 
AnswerRe: Class inference Pin
Chamadness16-Dec-08 20:53
Chamadness16-Dec-08 20:53 
QuestionProblem drawing shapes when form is clicked Pin
SilentCodingOne16-Dec-08 8:42
SilentCodingOne16-Dec-08 8:42 
AnswerRe: Problem drawing shapes when form is clicked Pin
Christian Graus16-Dec-08 8:51
protectorChristian Graus16-Dec-08 8:51 
GeneralRe: Problem drawing shapes when form is clicked Pin
SilentCodingOne16-Dec-08 10:28
SilentCodingOne16-Dec-08 10:28 
GeneralRe: Problem drawing shapes when form is clicked Pin
Christian Graus16-Dec-08 12:55
protectorChristian Graus16-Dec-08 12:55 
QuestionThread.Sleep and WebBrowser... Okay to use together? Pin
Matthew Klein16-Dec-08 8:36
Matthew Klein16-Dec-08 8:36 
AnswerRe: Thread.Sleep and WebBrowser... Okay to use together? Pin
Christian Graus16-Dec-08 8:52
protectorChristian Graus16-Dec-08 8:52 
GeneralRe: Thread.Sleep and WebBrowser... Okay to use together? Pin
Matthew Klein16-Dec-08 11:48
Matthew Klein16-Dec-08 11:48 
GeneralRe: Thread.Sleep and WebBrowser... Okay to use together? Pin
User 665816-Dec-08 11:57
User 665816-Dec-08 11:57 
GeneralRe: Thread.Sleep and WebBrowser... Okay to use together? Pin
Christian Graus16-Dec-08 13:14
protectorChristian Graus16-Dec-08 13:14 
GeneralRe: Thread.Sleep and WebBrowser... Okay to use together? Pin
Expert Coming16-Dec-08 16:26
Expert Coming16-Dec-08 16:26 

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.