Hi,
I feel I should point out that it's very bad practice to do this anyway, and
in future versions of Windows (or potentially even service packs) Microsoft
may well prevent this behaviour. Having a service with any kind of GUI is a
big security hole, as that form essentially has all the privileges of the
user account the service is configured to run as - potentially SYSTEM, which
has more powers than even the Administrator.
My advice would be to partition your solution into two projects - one
service, one forms app. Have the forms app interact with the service using
remoting. Much safer :-)
Regards,
Alex
"Szafranr" <sz********@SPAMpoczta.onet.pl> wrote in message
news:dm**********@news.onet.pl...
Hi everyone,
I have NT service from which I try to display window form.
This form is created in sub New.
In servise I implemented OnCustomCommand handle, when I wait for command
129
and for this command I try to do form.Show() but I can't see this window
:-(
I checked by filelog - form_load is running after send command.
Is possible to display window by that way?
If yes please tell me how.
Or maybe somebody has another idea for this problem
Regards
Szafranr