473,772 Members | 2,411 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Monitoring events in a windows service, from a forms app

Hi... I'm messing about with windows services in vb.net 2005 and have the
following question.

I have a service which has a timer in it, which fires every minute -
Textbook stuff
I have a windows forms app which I would like to respond to the service
firing an event

For example. Service's timer triggers, and windows forms app then displays a
message saying "Event Fired"

Is this obvious and easy to do ... can't help feeling I have missed
something.

Or, does this need remoting/wcf to achieve ?

Cheers
Stu

Oct 19 '07 #1
1 1646
You need remoting / WCF or a sql server and notification services i use
this in my current project as i wanted this to function at all times (
without Admin intervention to open the needed ports )

my Client just subscribes to a dataset where the windows service is writing
its events in , on every event the client is notified by notification
services and can thus synchronize the messages that were written

if you can not set up notfication services there is also the posibility to
poll the database once in a while to see if there are changes

HTH

Michel

"Stuart Parker" <me@here.comsch reef in bericht
news:AA******** *************** ***********@mic rosoft.com...
Hi... I'm messing about with windows services in vb.net 2005 and have the
following question.

I have a service which has a timer in it, which fires every minute -
Textbook stuff
I have a windows forms app which I would like to respond to the service
firing an event

For example. Service's timer triggers, and windows forms app then displays
a message saying "Event Fired"

Is this obvious and easy to do ... can't help feeling I have missed
something.

Or, does this need remoting/wcf to achieve ?

Cheers
Stu

Oct 19 '07 #2

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

Similar topics

5
1640
by: Wally | last post by:
Hi Hi need to monitoring my windows service written in VB NET. How can my monitor application "feel" that my service has made something? Is the only way a polling (for example on a Db table)? Can't service generate events into monitor application? Where can I retrieve examples about monitoring windows services? Thank in advance and... sorry for my english, but I'm Italian! :-)
3
2326
by: JSheble | last post by:
I have a windows service that in the OnStart it creates a thread and runs a loop forever and ever, assuming the service is running. The loop stops during the OnStop event, and everything works exactly as expected. I also have an application that monitors that service using the ServiceController component, and allows me to start & stop the service as needed, as well as poll for it's current status. Still everything thus far works and...
6
2110
by: ankurw | last post by:
Hi All, I am experiencing a frustrating issue with hooking into COM events from a Windows service writting in C#. I create a COM object in the service and hook into an event exposed by the object. The event gets raised a few times (3 times on a Win2k box and only once on a Win. 2003 box to be precise) and then simply stops. My setup is:
3
3604
by: BC | last post by:
Hi all, I have a windows service (on client machine) that monitors a MSMQ queue (on server machine). When a new message is in the server queue, the client windows service will get the message and does some process. What I want to do now is create a small windows application that sits on the client machine and monitor the activities of the windows service. I am using Visual Studio .NET 2003 with C#. The question is how can I monitor a...
9
3215
by: Tim D | last post by:
Hi, I originally posted this as a reply to a rather old thread in dotnet.framework.general and didn't get any response. I thought it might be more relevant here; anyone got any ideas? My questions are below... "David Good" wrote: > We have a network running both Win2k and Win2k3 webservers and our web sites > reside on a UNC network share that happens to be a Network Appliance NAS.
1
1335
by: russell.lane | last post by:
This is a health monitoring for web applications / web services question. I'm trying to set up health monitoring for web services and a web application. To start very simply, I want to turn on event logging for web requests. To do this I added the following markup to the <system.web> section of the web.config file in the service and application directories: <healthMonitoring enabled="true" heartbeatInterval="0"> <rules> <add...
3
1247
by: jay_kbvt | last post by:
Hi, Is there any way out that I can log copy/cut-paste events....? Thanks & Regards, Jaydeep.
2
6366
by: yevron2 | last post by:
Hello, I am trying to get clipboard events using SetClipboardViewer api. It works in a windows form when i override the function: protected override void WndProc(ref System.Windows.Forms.Message m) that belongs to the base class System.Windows.Forms. The problem is that i want to do it in a windows service...
0
1027
by: Kursat | last post by:
Hi, We have a network monitoring application wich generates some messages at unpredictable times. Our Windows Forms based client applications grab these messages and show them our clients. We want to build a web based architecture to implement same logic. We want our clients to watch monitoring messages on their browser window. I focused Ajax and async web service calls but I also see that clients can call a web service method...
0
9621
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, 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...
0
9454
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,...
0
10264
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, 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...
0
10106
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 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...
1
10039
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,...
1
7461
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 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...
0
5355
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4009
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
3
2851
bsmnconsultancy
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...

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.