User Profile
Collapse
-
I am unsure how to do this, but it seems like this is probably the issue. I am trying to get the Status of the service. the state which would be "Running", "Stopping" or blank(meaning Stopped) -
I simplified my code but still same error.
...Code:Private Sub listservices3() ' Dim obj As ManagementObject Dim obj As New ManagementObject("\\server01\root\cimv2:Win32_Service.Name='tomcat6SPI'") obj("State").ToString = "Running" Then If obj("State").ToString = "Running" Then Me.Label2.ForeColor = Color.AliceBlueLast edited by zmbd; Jan 2 '13, 06:47 PM. Reason: [Z{Please use the <CODE/> button to format posted code/html/sql}]Leave a comment:
-
-
get the status of a windows server service using vb.net
THis is my vb.net code
...Code:Public Class TS_Service ' Is the service running? ' Returns true if we need to start the service Public Function CheckService(ByVal PC As String) As Boolean Dim obj As ManagementObject obj = New ManagementObject("\\" & PC & "\root\cimv2:Win32_Service.Name='SBAMSvc'") ' If Not -
VB.net calendar showing events from sql 2000 db
Hello,
Could someone point me in the right direction. I want to use a calendar control and show events in the calendar for each date. These events would come from a sql 2000 db. So looking at the web page calendar you could see all events for the whole month and which day they are releted to. I need this in vb.net not c#.
Thanks.
No activity results to display
Show More
Leave a comment: