c# - A Windows Service should load a form at startup -
how can load 'login form' in onstart event of windows service?! know windows service incompatible ui. need without using windows startup.. possible? , how? lot.
how can load 'login form' in onstart event of windows service?
you cannot this, because windows services cannot display user interface.
i know windows service incompatible ui.
oh. knew that. good.
but need without using windows startup..
this not change fact not supported , not work.
is possible? , how?
no, because:
windows service incompatible ui.
so do!?!
the real answer here design wrong.
if need log in application, should not creating service.
just make standard windows application (e.g., using windows forms or wpf) , set start automatically when user logs on computer. can accomplished adding shortcut users "startup" folder.
then, when app runs, can display whatever ui need to, without limitations of service.
Comments
Post a Comment