How to Check IIS Service in On or Stop in vb.net

  • How to Check IIS Service in On or Stop

  • 1 Comment sorted by



  • Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
    Dim sc As New ServiceController("W3SVC")
    If sc IsNot Nothing Then

    If sc.Status = ServiceControllerStatus.Running Then
    Label1.Text = "IIS Server Running"

    Else
    Label1.Text = "IIS Server Stop"
    End If

    End If
    End Sub

Howdy, Stranger!

It looks like you're new here. If you want to get involved, or you want to Ask a new Question, Please Login or Create a new Account by Clicking below

Login with Facebook

Popular Posts of the Week

Top Posters Weekly

Optimum Creative