c# - How to show a form in windows service. -


i want load form in onstart() method in windows service; here code. not working. can please provide ?

protected override void onstart(string[] args) {     form1 fr = new form1();     fr.show(); } 

you can't use services way. services can't interact desktop directly, because run in windowsstation logged in users session. need create application communicate service.

how make communication can read on msdn , in example. ideas described on stackoverflow.


Comments

Popular posts from this blog

c# - How to set Z index when using WPF DrawingContext? -

razor - Is this a bug in WebMatrix PageData? -

visual c++ - Using relative values in array sorting ( asm ) -