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
Post a Comment