Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
DotNet
acad.assignment.mngr
academic
adonet
aspnet
aspnet.announcements
aspnet.build.controls
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
clr
compactframework
component_services
datatools
distributed_apps
drawing
faqs
framework
framework.wmi
general
internationalization
interop
languages.csharp
languages.jscript
languages.vb
languages.vb.controls
languages.vb.data
languages.vb.upgrade
languages.vc
languages.vc.libraries
myservices
odbcnet
performance
remoting
scripting
sdk
security
setup
vjsharp
vsa
webservi.enhancements
webservices
windowsforms
windowsforms.controls
winforms.databinding
winforms.designtime
xml
  
 
date: Sun, 5 Jun 2005 12:58:37 -0600,    group: microsoft.public.dotnet.myservices        back       


Converting a Console App to a Service   
In my console app, I run a Timer.  I had to add a reference to 
system.windows.form.dll and then do an Application.Run to keep the console 
app from closing.

Is it necessary to add the windows forms reference for the timer in a 
service?
date: Sun, 5 Jun 2005 12:58:37 -0600   author:   Terry Olsen

Re: Converting a Console App to a Service   
Terry Olsen wrote:
> In my console app, I run a Timer.  I had to add a reference to 
> system.windows.form.dll and then do an Application.Run to keep the console 
> app from closing.
> 
> Is it necessary to add the windows forms reference for the timer in a 
> service? 
> 
> 
For any reference it is simple to tell. Take it off. Does it still 
build? If not add it back. This simple test works for any reference, not 
just windows forms.
date: Tue, 07 Jun 2005 07:15:58 -0700   author:   Lee Gillie

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us