我用vistual studio 2005写了一个Console Application,
结构如下:
imports  xxxxxxx
Module moduledim pub as string   定义公共变量sub main()        主程序
会调用sub1
会调用class1的实例
end subsub sub1()
end subclass class1()
end classend Module
 现在想把其改写成Windows Service的程序,用visual studio新建一个windows service的项目,
结构如下:
Public Class Service1    Protected Overrides Sub OnStart(ByVal args() As String)
        ' Add code here to start your service. This method should set things
        ' in motion so your service can do its work.
    End Sub    Protected Overrides Sub OnStop()
        ' Add code here to perform any tear-down necessary to stop your service.
    End SubEnd Class我是新手,不知如何更改,把原来的console程序改为系统服务程序,请高手指点,谢谢