473,396 Members | 1,755 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,396 software developers and data experts.

Raising events froma Windows Service

I will be re-writing an old VB6.EXE using .Net. The existing tool just sits
processing data from a SQL connection. My aim is to re-write as a Windows
Service that raises event that can bwe seen by a UI

The UI will be a Windows App to show the data being processed, but it
doesn't have to be running for the data to be processed. To make it work the
service needs to raise an event, something like
Public Event MyHandler(ByVal strSomeData As String)
and the UI needs to respond
Public WithEvents MyServiceEvent As New
ServiceProcess.ServiceController("MyServiceName")

Whatever I try I can't get the 2 to sych up. Any ideas?


Jul 21 '05 #1
2 4309
Hi,

what you need is remoting.

Sunny

In article <u0**************@TK2MSFTNGP12.phx.gbl>, Wi****@wobble.com
says...
I will be re-writing an old VB6.EXE using .Net. The existing tool just sits
processing data from a SQL connection. My aim is to re-write as a Windows
Service that raises event that can bwe seen by a UI

The UI will be a Windows App to show the data being processed, but it
doesn't have to be running for the data to be processed. To make it work the
service needs to raise an event, something like
Public Event MyHandler(ByVal strSomeData As String)
and the UI needs to respond
Public WithEvents MyServiceEvent As New
ServiceProcess.ServiceController("MyServiceName")

Whatever I try I can't get the 2 to sych up. Any ideas?


Jul 21 '05 #2
Sunny, thanks for the reply.

I'll have a good read up before asking any more questions!

Regards
"Sunny" <su***@newsgroups.nospam> wrote in message
news:OK**************@TK2MSFTNGP09.phx.gbl...
Hi,

what you need is remoting.

Sunny

In article <u0**************@TK2MSFTNGP12.phx.gbl>, Wi****@wobble.com
says...
I will be re-writing an old VB6.EXE using .Net. The existing tool just sits processing data from a SQL connection. My aim is to re-write as a Windows Service that raises event that can bwe seen by a UI

The UI will be a Windows App to show the data being processed, but it
doesn't have to be running for the data to be processed. To make it work the service needs to raise an event, something like
Public Event MyHandler(ByVal strSomeData As String)
and the UI needs to respond
Public WithEvents MyServiceEvent As New
ServiceProcess.ServiceController("MyServiceName")

Whatever I try I can't get the 2 to sych up. Any ideas?


Jul 21 '05 #3

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

Similar topics

6
by: Dan | last post by:
I've created a pocketpc app which has a startup form containing a listview. The form creates an object which in turn creates a System.Threading.Timer. It keeps track of the Timer state using a...
1
by: Ian Walsh | last post by:
Hi, I'm a bit knew to events, so help would be appreciated. I'm developing a windows service that needs to fire an AD update at a set time every night (04:00). I'm guessing I need to capture...
7
by: cider123 | last post by:
I'm coding a project using the following article as reference: http://www.codeproject.com/csharp/DynamicPluginManager.asp In this type of project, plugins are loaded dynamically into a Plugin...
6
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...
0
by: Joe Campbell | last post by:
I am encountering a problem raising WMI events from an asp.net application. The error received (as captured in the event log) is as follows: System.Runtime.InteropServices.COMException...
2
by: JohnFol | last post by:
I will be re-writing an old VB6.EXE using .Net. The existing tool just sits processing data from a SQL connection. My aim is to re-write as a Windows Service that raises event that can bwe seen by...
1
by: Mary | last post by:
Dear All I have a webservice which has reference to the ATL COM, as we know that ATL COM of VC raises events i get those events in my web service of VB.net. But now the clients will have a web...
0
by: Mary | last post by:
Dear All I have a ATL COM exe, this has some events and functions. i need to give web support to this exe, hence making a wrapper of this by giving this a reference in a webservice. In the .net...
2
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...
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...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
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
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...

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.