PC Review


Reply
Thread Tools Rate Thread

Converting a winform app into service

 
 
John
Guest
Posts: n/a
 
      6th Aug 2007
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


 
Reply With Quote
 
 
 
 
Miha Markic
Guest
Posts: n/a
 
      6th Aug 2007
Hi John,

"John" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> 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/


 
Reply With Quote
 
=?Utf-8?B?ZG90TmV0RGF2ZQ==?=
Guest
Posts: n/a
 
      6th Aug 2007
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
>
>
>

 
Reply With Quote
 
Phil Wilson
Guest
Posts: n/a
 
      6th Aug 2007
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" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> 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
>
>



 
Reply With Quote
 
John
Guest
Posts: n/a
 
      6th Aug 2007
Sorry I just realised I wasn't clear. Windows Service.

Thanks

Regards

"dotNetDave" <(E-Mail Removed)> wrote in message
news:67911F91-90C4-4C87-AAE9-(E-Mail Removed)...
> 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
>>
>>
>>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Converting winform application into a dll class library Pavel Minaev Microsoft C# .NET 2 14th Jul 2008 11:47 AM
using web service with winform Joza Microsoft C# .NET 2 4th Nov 2007 05:54 PM
Converting a winform app into service John Microsoft Dot NET Framework Forms 4 6th Aug 2007 08:46 PM
Converting a winform app into service John Microsoft VB .NET 4 6th Aug 2007 08:46 PM
Converting Console App to Winform app Madalin Nicula Microsoft Dot NET Framework Forms 2 21st Dec 2004 01:49 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:47 AM.