By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,524 Members | 1,519 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,524 IT Pros & Developers. It's quick & easy.

Forms & Service

P: n/a
Hi !

How can I add WindowsForms and Notifyicons to my Service ?

Thanks !

Christoph
Nov 20 '05 #1
Share this Question
Share on Google+
9 Replies


P: n/a
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" <c.********@web.de> wrote in message
news:ue**************@TK2MSFTNGP10.phx.gbl...
Hi !

How can I add WindowsForms and Notifyicons to my Service ?

Thanks !

Christoph

Nov 20 '05 #2

P: n/a
* "Christoph Duesmann" <c.********@web.de> scripsit:
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.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
Nov 20 '05 #3

P: n/a
Why cant you do it this way ?

--

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

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

"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
* "Christoph Duesmann" <c.********@web.de> scripsit:
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.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Nov 20 '05 #4

P: n/a
* "One Handed Man \( OHM - Terry Burns \)" <news.microsoft.com> scripsit:
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.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
Nov 20 '05 #5

P: n/a
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

"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:ua****************@TK2MSFTNGP10.phx.gbl...
* "One Handed Man \( OHM - Terry Burns \)" <news.microsoft.com> scripsit:
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.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Nov 20 '05 #6

P: n/a
* "One Handed Man \( OHM - Terry Burns \)" <news.microsoft.com> scripsit:
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.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
Nov 20 '05 #7

P: n/a
Terry,

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

Cor
Nov 20 '05 #8

P: n/a
"Christoph Duesmann" <c.********@web.de> wrote in news:ueHNkw5cEHA.4004
@TK2MSFTNGP10.phx.gbl:

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.

--
Lucas Tam (RE********@rogers.com)
Please delete "REMOVE" from the e-mail address when replying.
http://members.ebay.com/aboutme/coolspot18/
Nov 20 '05 #9

P: n/a
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

"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:uw**************@TK2MSFTNGP11.phx.gbl...
* "One Handed Man \( OHM - Terry Burns \)" <news.microsoft.com> scripsit:
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.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Nov 20 '05 #10

This discussion thread is closed

Replies have been disabled for this discussion.