Helly guys...
Anyone know's how to call a Form from inside a Windows Service
Project??
Thanks in advance... 3 5198
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.co m
"IsRaEl" <yz****@gmail.c omwrote in message
news:11******** **************@ u30g2000hsc.goo glegroups.com.. .
Helly guys...
Anyone know's how to call a Form from inside a Windows Service
Project??
Thanks in advance...
On Jun 1, 4:50 pm, "Nicholas Paldino [.NET/C# MVP]"
<m...@spam.guar d.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.c om
"IsRaEl" <yzr...@gmail.c omwrote in message
news:11******** **************@ u30g2000hsc.goo glegroups.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??
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.co m
"IsRaEl" <yz****@gmail.c omwrote in message
news:11******** **************@ p47g2000hsd.goo glegroups.com.. .
On Jun 1, 4:50 pm, "Nicholas Paldino [.NET/C# MVP]"
<m...@spam.guar d.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.c om
"IsRaEl" <yzr...@gmail.c omwrote in message
news:11******* *************** @u30g2000hsc.go oglegroups.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?? This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 : System.IO.FileNotFoundException: The specified
module could not be found.
at System.Windows.Forms.UnsafeNativeMethods.CoCreateInstance(Guid&
clsid, Object punkOuter, Int32 context, Guid& iid)
at System.Windows.Forms.AxHost.CreateWithoutLicense()
at...
|
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 issue is simply getting
timers to work. I have a DatabaseManager.DataManagerFacade which contains a
timer. Every 6 seconds it updates stock data using an online webservice. I
wrote have 2 possible startup projects to make the service work. One...
|
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 Administration group (on server side) to have the necessary
authorization to start a Windows Service (I don't understand why "Power
User" rights are not enough to do the same thing)
Although I'm able to start a service using windows 2000 server...
|
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).
When I copy my client application to another machine and start it, I got an
error about initialized problem.
Note that I can browser my web service .asmx file from the second machine.
The sample client source code:
|
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 going wrong.
The program has been written to do the following tasks:
- Select remote server
- Select from two specific services
| |
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
- Select from two specific services
- Check the status of the server
|
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 called but only if I run the app
through the IDE. If run standalone (release or debug build, it doesn't
matter), the event handler is never called. In the Windows Forms app,
I changed it to use the Application.ThreadException event and that...
|
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 check to see if the status is in stopped
or running mode. But that doesn't tell me if it is actually running.
I need to know this so that if it happens I can programmatically start the
same service on another machine.
|
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 ActiveX control we're using (GrFinger for
fingerprint reader)implements several event handlers. It is also my
understanding that there is no Message Pump within a Windows Service. I
suppose I could create my own message pump, but this seems...
|
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 every second.
I remote desktop to the computer hosting this application and run the
application. It starts up and displays the counter incrementing every
second. If I disconnect the network cable between the two computers for 10
seconds and...
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
| |
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
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 then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
| |
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |