473,466 Members | 1,462 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Windows Service with Forms

Helly guys...

Anyone know's how to call a Form from inside a Windows Service
Project??

Thanks in advance...

Jun 1 '07 #1
3 5170
I think we went over this with you already, you don't. Interacting with
a form from a service is a very, very bad idea, as you won't always have an
interactive login in order to display a form with. While you can allow the
service to interact with the desktop, I believe it was pointed out in the
last thread that Vista does not allow this option.

If you want to receive notifications from the service and display them
in a UI, then create a separate exe and have it contact the service through
remoting.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"IsRaEl" <yz****@gmail.comwrote in message
news:11**********************@u30g2000hsc.googlegr oups.com...
Helly guys...

Anyone know's how to call a Form from inside a Windows Service
Project??

Thanks in advance...

Jun 1 '07 #2
On Jun 1, 4:50 pm, "Nicholas Paldino [.NET/C# MVP]"
<m...@spam.guard.caspershouse.comwrote:
I think we went over this with you already, you don't. Interacting with
a form from a service is a very, very bad idea, as you won't always have an
interactive login in order to display a form with. While you can allow the
service to interact with the desktop, I believe it was pointed out in the
last thread that Vista does not allow this option.

If you want to receive notifications from the service and display them
in a UI, then create a separate exe and have it contact the service through
remoting.

--
- Nicholas Paldino [.NET/C# MVP]
- m...@spam.guard.caspershouse.com

"IsRaEl" <yzr...@gmail.comwrote in message

news:11**********************@u30g2000hsc.googlegr oups.com...
Helly guys...
Anyone know's how to call a Form from inside a Windows Service
Project??
Thanks in advance...
so remoting..with 2 separeted projetcs it's the best solution??

i can use the winform to call a method inside the Service, with the
service permissions??

Jun 1 '07 #3
Yes, you can. You would set the service up as a remoting server, and
then have the windows forms app be a client which makes calls on the methods
you expose on the server.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"IsRaEl" <yz****@gmail.comwrote in message
news:11**********************@p47g2000hsd.googlegr oups.com...
On Jun 1, 4:50 pm, "Nicholas Paldino [.NET/C# MVP]"
<m...@spam.guard.caspershouse.comwrote:
> I think we went over this with you already, you don't. Interacting
with
a form from a service is a very, very bad idea, as you won't always have
an
interactive login in order to display a form with. While you can allow
the
service to interact with the desktop, I believe it was pointed out in the
last thread that Vista does not allow this option.

If you want to receive notifications from the service and display
them
in a UI, then create a separate exe and have it contact the service
through
remoting.

--
- Nicholas Paldino [.NET/C# MVP]
- m...@spam.guard.caspershouse.com

"IsRaEl" <yzr...@gmail.comwrote in message

news:11**********************@u30g2000hsc.googleg roups.com...
Helly guys...
Anyone know's how to call a Form from inside a Windows Service
Project??
Thanks in advance...

so remoting..with 2 separeted projetcs it's the best solution??

i can use the winform to call a method inside the Service, with the
service permissions??

Jun 1 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: andy.g.ward | last post by:
I keep getting this when trying to create an MFC activex control in a c# windows service - anyone got any ideas what the missing module could be??? Exception thrown :...
3
by: Nathan Kovac | last post by:
I have a feeling I am missing something simple, but I just can't find it. Perhaps someone can give me a lead on where to look. I will describe the issue then post my code to the web service. My...
5
by: pberna | last post by:
Dear all, I built a Web Form application to start and stop a Windows Service remotely. I successful tested the application on Windows 2000 server + IIS. I must include the ASPNET user to the...
5
by: david | last post by:
I have developed my web service with a domain name of my computer name and wwwroot directory. I also developed a client of windows form application. It works locally (i.e. in the same machine). ...
1
by: Scott Davies | last post by:
Hi, I'm looking for some help on a small program that I'm trying to develop in VB.NET. I'm having trouble getting the code that I've written to work, can anyone shed some light as to where I'm...
0
by: Scott Davies | last post by:
Hi, I'm looking for some help on a small program that I'm trying to develop in VB.NET. The program I'm trying to develop needs to be able to do the following: - Select remote server -...
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...
4
by: tshad | last post by:
What would be a good way to check programmatically whether a service was running? We have a service that dies periodically and I need to check to see if this service is running. I know how to...
2
by: =?Utf-8?B?Sm9obiBG?= | last post by:
Hello All, I have a question about using an ActiveX control with a Windows Servce in C#. I believe it is not possible to properly setup an ActiveX control in a windows service as the particular...
15
by: =?Utf-8?B?TVNU?= | last post by:
To demonstrate my problem, I have a very simple VB Windows application. It has a text box that is used to display a counter, a button to reset the counter, and a timer that increments the counter...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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...
1
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.