By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,963 Members | 1,798 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,963 IT Pros & Developers. It's quick & easy.

Converting a winform app into service

P: n/a
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
Aug 6 '07 #1
Share this Question
Share on Google+
4 Replies


P: n/a
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" wrote:
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
Aug 6 '07 #2

P: n/a
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.
--
Phil Wilson
[Microsoft MVP Windows Installer]
"John" <Jo**@nospam.infovis.co.ukwrote in message
news:%2****************@TK2MSFTNGP03.phx.gbl...
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


Aug 6 '07 #3

P: n/a
Sorry I just realised I wasn't clear. Windows Service.

Thanks

Regards

"dotNetDave" <do********@discussions.microsoft.comwrote in message
news:67**********************************@microsof t.com...
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" wrote:
>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

Aug 6 '07 #4

P: n/a
Hi John,

"John" <Jo**@nospam.infovis.co.ukwrote in message
news:%2****************@TK2MSFTNGP03.phx.gbl...
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.
--
Miha Markic [MVP C#, INETA Country Leader for Slovenia]
RightHand .NET consulting & development www.rthand.com
Blog: http://cs.rthand.com/blogs/blog_with_righthand/
Aug 7 '07 #5

This discussion thread is closed

Replies have been disabled for this discussion.