how would I check if ServiceControllerStatus is NULL/value does not exist with the code I have as follows:
Dim controller As New ServiceController("value")
If controller.Status = ServiceControllerStatus.Running Then
ListBox1.Items.Add("Value Service running")
Else
Label2.Text = ""
End If
Is there an "empty or NULL" function I could use?
Thanks
Do you mean:
If controller.Status = Nothing Then
?
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.