service name

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • =?Utf-8?B?R3V5IENvaGVu?=

    #1

    service name

    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.
    InitializeCompo nent()
    End Sub

    I entered into InitializeCompo nent and found:

    ' Do not modify it using the code editor.
    Private Sub InitializeCompo nent()
    components = New System.Componen tModel.Containe r()
    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
  • =?Utf-8?B?R3V5IENvaGVu?=

    #2
    RE: service name

    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


    "Guy Cohen" wrote:
    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.
    InitializeCompo nent()
    End Sub
    >
    I entered into InitializeCompo nent and found:
    >
    ' Do not modify it using the code editor.
    Private Sub InitializeCompo nent()
    components = New System.Componen tModel.Containe r()
    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

    Comment

    Working...