service name

  • Thread starter Thread starter Guy Cohen
  • Start date Start date
G

Guy Cohen

Hi all
I just wrote a service using vb2005 - service name MyFirstService
I noticed that in the sub New() of the service class I have:


Public Sub New()

' This call is required by the Windows Form Designer.
InitializeComponent()
End Sub

I entered into InitializeComponent and found:

' Do not modify it using the code editor.
Private Sub InitializeComponent()
components = New System.ComponentModel.Container()
Me.ServiceName = "Service1"
End Sub


But the service name is not service1
Whats wrong here? who named the service name as Service1


TIA
Guy Cohen
 
Ok,
I found how to change it...
From project explorer - double click xxx.vb (service file)
Then click the design window (the gray window) and press F4
There you can change the service name (last property) and it changes the
Service1 value I wrote below
 
Back
Top