Right now I have this code to restart a service
Code:
Public Sub RestartService(ByVal myServiceName As String)
Dim DataSource As String = TextBox1.Text
Dim sStatus As String
Dim myController As ServiceController
myController = New ServiceController
myController.MachineName = DataSource