Click here to Skip to main content
15,908,675 members
Home / Discussions / C#
   

C#

 
GeneralRe: Access Form from Class Pin
carbon_golem8-Apr-08 3:35
carbon_golem8-Apr-08 3:35 
GeneralRe: Access Form from Class Pin
Gareth H8-Apr-08 4:22
Gareth H8-Apr-08 4:22 
GeneralRe: Access Form from Class Pin
Dave Kreskowiak8-Apr-08 5:19
mveDave Kreskowiak8-Apr-08 5:19 
GeneralRe: Access Form from Class Pin
carbon_golem8-Apr-08 16:56
carbon_golem8-Apr-08 16:56 
GeneralRe: Access Form from Class Pin
Dave Kreskowiak8-Apr-08 5:16
mveDave Kreskowiak8-Apr-08 5:16 
GeneralRe: Access Form from Class Pin
Gareth H8-Apr-08 5:38
Gareth H8-Apr-08 5:38 
QuestionAllow service to interact with Desktop Pin
ptr2void8-Apr-08 2:36
ptr2void8-Apr-08 2:36 
GeneralRe: Allow service to interact with Desktop Pin
Dave Kreskowiak8-Apr-08 5:13
mveDave Kreskowiak8-Apr-08 5:13 
novice1115 wrote:
"Allow service to interact with Desktop"?
What does this mean??


In simple terms, Windows Services run under a seperate, non-visible desktop. Checking this option allows the service to interact with the users visible desktop instead of the normal hidden service desktop. Screen Savers run under another seperate desktop, and so does the UI for unlocking the workstation when you hit Ctrl-Alt-Del.


novice1115 wrote:
I want to start an application through a windows service (say notepad).. So when I check this option (Allow service to interact with Desktop), I am able to start it, otherwise not..


Of course. If this option is not checked, then Notepad will still launch, but it's window will show up on the service desktop, which you can't see.


novice1115 wrote:
Does it mean that for GUI application, this option should be checked? What If i want to run a console application? Will checking this option let my console application run or not??


If the option is checked or not, the process you launch, no matter what type it is, will still launch. It's just a matter of under which desktop the window is going to show up. If this option is not checked, the user will never wee the new application's windows, even if it's a console app.


novice1115 wrote:
Is it bad for services to interact with the desktop??


Generally, yes, it's bad practice. Think about it. What if there's no user logged in??? How are you going to tell?? How are you going to handle this situation?? What if the user logs out during an operation your service is performing?? There are just a few of the questions you have to ask yourself if you are going to write an interactive service.


A guide to posting questions on CodeProject[^]



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




GeneralRe: Allow service to interact with Desktop Pin
som.nitk8-Apr-08 5:23
som.nitk8-Apr-08 5:23 
QuestionStackOverflow in ListView Pin
Pathetic Logic8-Apr-08 1:22
Pathetic Logic8-Apr-08 1:22 
GeneralRe: StackOverflow in ListView Pin
Christian Graus8-Apr-08 1:28
protectorChristian Graus8-Apr-08 1:28 
QuestionRe: StackOverflow in ListView Pin
Pathetic Logic8-Apr-08 3:04
Pathetic Logic8-Apr-08 3:04 
AnswerRe: StackOverflow in ListView Pin
Pathetic Logic8-Apr-08 4:51
Pathetic Logic8-Apr-08 4:51 
GeneralRegarding Multithreading Pin
tasumisra8-Apr-08 0:32
tasumisra8-Apr-08 0:32 
GeneralRe: Regarding Multithreading Pin
Christian Graus8-Apr-08 0:34
protectorChristian Graus8-Apr-08 0:34 
QuestionHow to start learning about creating database server. Pin
toeh7-Apr-08 23:56
toeh7-Apr-08 23:56 
AnswerRe: How to start learning about creating database server. Pin
Christian Graus8-Apr-08 0:16
protectorChristian Graus8-Apr-08 0:16 
AnswerRe: How to start learning about creating database server. Pin
Pete O'Hanlon8-Apr-08 0:58
mvePete O'Hanlon8-Apr-08 0:58 
AnswerRe: How to start learning about creating database server. Pin
darkelv8-Apr-08 1:26
darkelv8-Apr-08 1:26 
Questionexporting windows form as pdf Pin
Faysal7-Apr-08 23:43
Faysal7-Apr-08 23:43 
GeneralRe: exporting windows form as pdf Pin
Christian Graus8-Apr-08 0:17
protectorChristian Graus8-Apr-08 0:17 
GeneralRe: exporting windows form as pdf Pin
Faysal8-Apr-08 0:56
Faysal8-Apr-08 0:56 
GeneralRe: exporting windows form as pdf Pin
Christian Graus8-Apr-08 1:12
protectorChristian Graus8-Apr-08 1:12 
GeneralRe: exporting windows form as pdf Pin
Faysal8-Apr-08 23:06
Faysal8-Apr-08 23:06 
GeneralParameter Handling while generating code from the WSDL Pin
Kapil Singhal7-Apr-08 23:33
Kapil Singhal7-Apr-08 23:33 

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.