473,407 Members | 2,598 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,407 software developers and data experts.

Windows service created...... Now, to build a GUI?

I have just finished a Windows Service that I have been working on for
quite some time that works pretty well and is fairly useful. To this
point, editing configuration items of the service requires manually
editing the config.xml file. This is completely fine for me. But, I
just decided that I want to build a nice little GUI for the service,
give it a tray icon, and release it for all to use.

I have developed plenty of desktop applications, windows services, web
applications, etc. The one thing that I have not done is build a
Windows Service that has a GUI.

My service is a FTP backup utility. What I would like to develop is a
GUI that will allow the user to add/edit/delete new backup jobs, see
the current activity of the service (if it is currently downloading,
uploading, etc), and be able to stop/start the service.

So, can someone point me in the right direction to achieve this? I
would prefer some good, clean code, not some hack junk.

Thanks in advance. If anyone would like a copy of the code when I
finish it up, shoot me an email and I will be more than happy to
supply it.

Jul 21 '07 #1
4 2925

<Ta*****************@gmail.comwrote in message
news:11*********************@j4g2000prf.googlegrou ps.com...
>I have just finished a Windows Service that I have been working on for
quite some time that works pretty well and is fairly useful. To this
point, editing configuration items of the service requires manually
editing the config.xml file. This is completely fine for me. But, I
just decided that I want to build a nice little GUI for the service,
give it a tray icon, and release it for all to use.

I have developed plenty of desktop applications, windows services, web
applications, etc. The one thing that I have not done is build a
Windows Service that has a GUI.

My service is a FTP backup utility. What I would like to develop is a
GUI that will allow the user to add/edit/delete new backup jobs, see
the current activity of the service (if it is currently downloading,
uploading, etc), and be able to stop/start the service.

So, can someone point me in the right direction to achieve this? I
would prefer some good, clean code, not some hack junk.

Thanks in advance. If anyone would like a copy of the code when I
finish it up, shoot me an email and I will be more than happy to
supply it.
http://dotnetjunkies.com/Tutorial/C4...643EEF8A6.dcik

Use Goole, I am sure you find examples on how to use a Windows desktop
solution to interact with a service using Service Controller and
OnCustomCommands.

The trick will be to get the Service to send data back to the Windows
desktop solution.

I hear you can use Net Remoting for the communications link.

You're not going to find solutions for VB.Net like you can for C#.

Like this one here that you may be able to convert to VB to do AppDomain
communications.

http://www.codeproject.com/cs/library/XDMessaging.asp

You can check with the Code Project and Dotnetjunkies for code examples.

All you want is code examples, then you have to think outside the box on
your own.
Jul 21 '07 #2
Ta*****************@gmail.com wrote in news:1185055728.874951.52160
@j4g2000prf.googlegroups.com:
My service is a FTP backup utility. What I would like to develop is a
GUI that will allow the user to add/edit/delete new backup jobs, see
the current activity of the service (if it is currently downloading,
uploading, etc), and be able to stop/start the service.

So, can someone point me in the right direction to achieve this? I
would prefer some good, clean code, not some hack junk.
The ideal way is to expose your service as a .NET remoting object or WCF
endpoint - this gives you the richest integration option.

Your desktop GUI is a stand alone client application which will
communicate through remoting or WCF to your service.

Your service will expose a set of functions (add/remove/edit/delete
jobs, list jobs, etc.) and your client will call these functions.

Building the client is relatively straightforward if you have experience
with remoting/WCF - if not it's a bit tricky.

A simplier solution (tho definately not as good) would be to do it via
the database. You can submit control records to the database and make
your service pick up control records and action them. I personally
dislike this solution but if you don't have any experience with
remoting/WCF than this is much easier to do.
Jul 22 '07 #3
On Jul 22, 10:21 am, Spam Catcher <spamhoney...@rogers.comwrote:
TampaWebDevelopm...@gmail.com wrote in news:1185055728.874951.52160
@j4g2000prf.googlegroups.com:
My service is a FTP backup utility. What I would like to develop is a
GUI that will allow the user to add/edit/delete new backup jobs, see
the current activity of the service (if it is currently downloading,
uploading, etc), and be able to stop/start the service.
So, can someone point me in the right direction to achieve this? I
would prefer some good, clean code, not some hack junk.

The ideal way is to expose your service as a .NET remoting object or WCF
endpoint - this gives you the richest integration option.

Your desktop GUI is a stand alone client application which will
communicate through remoting or WCF to your service.

Your service will expose a set of functions (add/remove/edit/delete
jobs, list jobs, etc.) and your client will call these functions.

Building the client is relatively straightforward if you have experience
with remoting/WCF - if not it's a bit tricky.

A simplier solution (tho definately not as good) would be to do it via
the database. You can submit control records to the database and make
your service pick up control records and action them. I personally
dislike this solution but if you don't have any experience with
remoting/WCF than this is much easier to do.
It looks like remoting is the way to go. I have looked all over for a
good VB.NET 2.0 example and have yet been able to find one. Can
someone post some simple sample code for the service and the same for
the client? I would greatly appreciate it.

Jul 28 '07 #4
Hi,
If you got a solution for this requirement i would like to have a copy of the code.

I have the similar requirement in a java migration project.
Thanks & Regards
Sapna
Jun 27 '08 #5

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

Similar topics

9
by: Hardy Wang | last post by:
Hi all: I read an article from http://www.c-sharpcorner.com/Code/2003/Sept/InstallingWinServiceProgrammatically.asp about how to install a windows service programmatically. Based ont the code...
2
by: Fadi | last post by:
Backround: I am trying to figure out how to do the equivalant of a classic COM Local Server Singleton in .NET/C#. I created a coupld of simple Class Libs that exposes public interfaces and hosted...
3
by: Jeremy S. | last post by:
On my dev machine (XP/Pro with VS.NET 2003) I have been developing a Windows Service and installing it on the local machine by opening the Visual Studio Command Prompt and then executing . Now I...
5
by: Andrea Vincenzi | last post by:
Help me please, I'm totally stuck! My Visual Studio 2003 debugger stopped working after I installed Windows XP Service Pack 2. Here is what happens (with any project, even a "Hello, world"...
9
by: Claudio Grondi | last post by:
I am aware, that it is maybe the wrong group to ask this question, but as I would like to know the history of past file operations from within a Python script I see a chance, that someone in this...
0
by: M. Bruil | last post by:
I've created a project which runs as Windows service (Visual Studio 2005). Part of this project is printing (Crystal reports) and sending email messages with file attachments. The service is...
5
by: JM | last post by:
I have created a Windows Service which uses xml file as a data source. The service is running on .NET 2.0 and uses LocalSystem account. It was running fine but now it has started locking the xml...
1
by: kirk.quinbar | last post by:
Have you ever used a .net deployment project to install a windows service? If so, then i ran into an issue recently that maybe you could shed some light on. I am sure I probably did something...
5
by: dm3281 | last post by:
I'm really starting to hate writing services -- or trying to, anyway. Why do I need to rename my project to the service name? Why do I need to set the "ServiceName" property to my service name?...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
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.