[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

microsoft.public.dotnet.framework.setup

Converting a winform app into service

John

8/6/2007 2:01:00 AM

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


4 Answers

Miha Markic

8/6/2007 8:30:00 AM

0

Hi John,

"John" <John@nospam.infovis.co.uk> wrote in message
news:%23MVJn281HHA.3400@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_...


dotNetDave

8/6/2007 6:28:00 PM

0

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
>
>
>

Phil Wilson

8/6/2007 7:44:00 PM

0

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" <John@nospam.infovis.co.uk> wrote in message
news:%23MVJn281HHA.3400@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
>
>


John

8/6/2007 7:47:00 PM

0

Sorry I just realised I wasn't clear. Windows Service.

Thanks

Regards

"dotNetDave" <dotNetDave@discussions.microsoft.com> wrote in message
news:67911F91-90C4-4C87-AAE9-D69EE0B634B8@microsoft.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
>>
>>
>>