Converting a winform app into service

  • Thread starter Thread starter John
  • Start date Start date
J

John

Hi

I have a winform app that uses a timer to periodically run a number of
queries on an access db and write the results in a rich text control on the
form. I have two questions;

1. If I am to convert this app into a service app what changes do I need to
make?

2. Is installing a service in vs 2005 any easier than it used to in vs 2003?

Thanks

Regards
 
Hi John,

John said:
Hi

I have a winform app that uses a timer to periodically run a number of
queries on an access db and write the results in a rich text control on
the form. I have two questions;

1. If I am to convert this app into a service app what changes do I need
to make?

I suggest you to put your code in a library, create a service using vs
wizard, call library from your newly created service.
2. Is installing a service in vs 2005 any easier than it used to in vs
2003?

Not that I know. It is easy enough already. What are you missing?
Anyway, you might consider creating a nonservice app and call it from task
scheduler instead. This way you won't need to hassle with instalations.
 
All you need to do is more the data access to a web service and expose a
method to return the results. Leave the timer in the WinForms app and just
call the service.

Either version of VS is fine. There are not a whole lot of changes when it
comes to web services.

======================================
David McCarter [Microsoft VB.NET MVP]
www.vsdntips.com
VSDN Tips & Tricks .NET Coding Standards available at:
www.cafepress.com/vsdntips.20412485
 
1) You mean a Windows Service as installed by Visual Studio setup projects
with Installer classes?

If so, you'd install the service and use remoting from the Forms app to the
service, and the service gets the data. When you say "on the form" I don't
know where this for lives. Services don't have UI, so you can't really have
the service showing a form.

2) Not if you're using Installer classes, they're still used in VS 2005.
 
Sorry I just realised I wasn't clear. Windows Service.

Thanks

Regards

dotNetDave said:
All you need to do is more the data access to a web service and expose a
method to return the results. Leave the timer in the WinForms app and just
call the service.

Either version of VS is fine. There are not a whole lot of changes when it
comes to web services.

======================================
David McCarter [Microsoft VB.NET MVP]
www.vsdntips.com
VSDN Tips & Tricks .NET Coding Standards available at:
www.cafepress.com/vsdntips.20412485


John said:
Hi

I have a winform app that uses a timer to periodically run a number of
queries on an access db and write the results in a rich text control on
the
form. I have two questions;

1. If I am to convert this app into a service app what changes do I need
to
make?

2. Is installing a service in vs 2005 any easier than it used to in vs
2003?

Thanks

Regards
 
Back
Top