473,395 Members | 2,222 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Forms & Service

Hi !

How can I add WindowsForms and Notifyicons to my Service ?

Thanks !

Christoph
Nov 20 '05 #1
9 878
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
* "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
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
* "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
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
* "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
Terry,

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

Cor
Nov 20 '05 #8
"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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Michael Brandt Lassen | last post by:
Hi gurus This problem is about calling Web services secured by Forms Authentication from Windows Forms user controls embedded in HTML. Using the object tag I’ve managed to include a Windows...
7
by: Dan Walls | last post by:
Hi, I just had a question regarding forms authentication using a SQL database backend. If my (planned)architecture is: Internet -> firewall -> DMZ (IIS - access to User Interface) -> Firewall...
2
by: Chris Dunaway | last post by:
I am attempting to use the AppDomain.UnhandledException event in a Windows Forms app and also in a Windows Service. But the event doesn't seem to be called. In a Windows Forms app, the event IS...
2
by: Ludovic DE FREITAS | last post by:
Hello, I am making a prototype system with a Pocket PC that must connect to a Server Application. Unfortunately, the server cannot be a Web Server, but a simple Windows Forms Application. ...
1
by: Albertas | last post by:
Hello, I have a Web Service that needs to send and receive data from running windows forms application every time when WS methods are called. My question is: What is the best way to do that? I'm...
0
by: Vijay | last post by:
Prep Courses for International Certifications, CSTE & CSQA & ISEB & ISTQB &Business Analyst & SOA Certifications in HYDERABAD. After receiving overwhelming response to our last 50+ batches, ...
25
by: jim | last post by:
I thought that I read somewhere that services don't (or can't) have forms. Is that true?
5
by: Rory Becker | last post by:
Having now created a Custom MembershipProvider that seems to work correctly with my Logon and ChangePassword controls, I am, as they say, a happy bunny. The next stange is to move on to the...
5
by: programmerboy | last post by:
I never had this kind of issue before and it is completely surprising. I have a usercontrol where I need 2 forms to make 1 form. When I have only 1 form it submits the page to itself. I have spent...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.