Click to See Complete Forum and Search --> : NT Service Control


Samantha
November 24th, 1999, 02:27 PM
I want to create a VB application that runs as an NT service, however I do not want to utilize a form as a container to hold the NTsrv.ocx control. Is it possible to simply declare the control within a primary class module or do I have to have a form within the program?

Lothar Haensler
November 25th, 1999, 01:47 AM
AFAIK you need to have a control container in order to use an OCX. In a VB app that's a form.
You can make the form inivisible.
Also bear in mind, that on MSDN MS has documented that it is not recommended to write services in VB.