Results 1 to 5 of 5

Thread: develope NT Service using VB

  1. #1

    Thread Starter
    New Member
    Join Date
    Nov 2000
    Posts
    1

    Question

    hi all,
    i need u r help.

    We developed an tcpserver program , which is an exe file. now we want run that exe as a ntservice.

    Thx in advance.
    sudhakar

  2. #2
    Junior Member
    Join Date
    Aug 2000
    Posts
    17
    It's possible via the NTService OCX provided by Microsoft. However, this OCX is **extremely** hard to find (you can't even find it on the MS site itself). I have used this OCX myself and it seems to work very well indeed, so I dunno why it's not more widely available.

    You can check out this article:
    http://vbwire.com/advanced/howto/service2.asp

    And if you need the OCX, send me an email, I still have it.

  3. #3
    PowerPoster Chris's Avatar
    Join Date
    Jan 1999
    Location
    K-PAX
    Posts
    3,238

    Thumbs up

    Hope this is what you looking for...

    Code:
    Private Sub Command1_Click()
    With NTService1
            .StartMode = svcStartAutomatic
            .DisplayName = "My Service"
            .ServiceName = "My Service"
            .Install
    End With
    End Sub
    Private Sub Command2_Click()
    With NTService1
        .ServiceName = "My Service"
        .Uninstall
    End With
    End Sub

  4. #4
    Guest

    Control

    Send me a email to maexchen@kabelnet.at and i'll send you the control back (for NT- Service)

  5. #5
    Addicted Member aturner's Avatar
    Join Date
    Nov 2000
    Posts
    179

    Unhappy please help me <grovel>

    would this OCX thing be able to change the password that the service tries to use.
    Due to the energy crisis, the light at the end of the tunnel has been turned off.
    Sorry for any inconvenience this may cause

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width