service name

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
 
G

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top