Forms & Service

  • Thread starter Thread starter Christoph Duesmann
  • Start date Start date
C

Christoph Duesmann

Hi !

How can I add WindowsForms and Notifyicons to my Service ?

Thanks !

Christoph
 
Add a reference to the System.Windows.Forms dll, and then use the imports
System.Windows.Forms

--

OHM ( Terry Burns )
. . . One-Handed-Man . . .

Time flies when you don't know what you're doing
 
* "Christoph Duesmann said:
How can I add WindowsForms and Notifyicons to my Service ?

Don't do that. Instead, create a separate Windows Forms application
that communicates with the service using remoting or sockets. That's
the recommended way.
 
Why cant you do it this way ?

--

OHM ( Terry Burns )
. . . One-Handed-Man . . .

Time flies when you don't know what you're doing
 
* "One Handed Man \( OHM - Terry Burns \) said:
Why cant you do it this way ?

You would have to allow user interaction for the service, and this may
cause some problems... Most services like SQL Server, Apache, ... do it
the same way, the service and the service controller applications are
separate applications. If the service controller application crashes,
the service still runs.
 
Thats still not answering my question. You made a statement that this is not
a good idea to do this, please just simply tell my why not, ( Not that other
people dont do it this way )

Thanks

--

OHM ( Terry Burns )
. . . One-Handed-Man . . .

Time flies when you don't know what you're doing
 
* "One Handed Man \( OHM - Terry Burns \) said:
Thats still not answering my question. You made a statement that this is not
a good idea to do this, please just simply tell my why not, ( Not that other
people dont do it this way )

Re-read my post, I gave at least one reason there.
 
Terry,

In my opinion is Herfried in this right, in his answer and the explanation
he told.

Cor
 
How can I add WindowsForms and Notifyicons to my Service ?

You don't.

You should create a new windows form apps which edits the parameters of
your service.

You may want to look into remoting to communicate between the two pieces of
software.
 
This is speculation, not a real scientific reason.

--

OHM ( Terry Burns )
. . . One-Handed-Man . . .

Time flies when you don't know what you're doing
 
Back
Top