Click here to Skip to main content
15,900,973 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: timer and showing forms Pin
The ANZAC2-Dec-06 18:58
The ANZAC2-Dec-06 18:58 
AnswerRe: timer and showing forms Pin
Taylor Kobani3-Dec-06 2:56
Taylor Kobani3-Dec-06 2:56 
QuestionCan Perl be used in Visual Studio? Pin
someone_blank2-Dec-06 3:09
someone_blank2-Dec-06 3:09 
AnswerRe: Can Perl be used in Visual Studio? Pin
mr_lasseter2-Dec-06 5:03
mr_lasseter2-Dec-06 5:03 
GeneralRe: Can Perl be used in Visual Studio? Pin
someone_blank2-Dec-06 17:28
someone_blank2-Dec-06 17:28 
QuestionApplications in a ListView Pin
Zaegra2-Dec-06 1:46
Zaegra2-Dec-06 1:46 
AnswerRe: Applications in a ListView Pin
Thomas Stockwell2-Dec-06 9:28
professionalThomas Stockwell2-Dec-06 9:28 
AnswerRe: Applications in a ListView Pin
Nandha Kumar3-Dec-06 6:27
Nandha Kumar3-Dec-06 6:27 
The Following code will be useful to you to get the process

-----------------------------------------------------------------------------
Public Function GetProcess(ByVal strquery As String, ByVal strhost As String)
Try
Dim searcher As Management.ManagementObjectSearcher
Dim connect As New Management.ConnectionOptions()
Dim objcollection As Management.ManagementObjectCollection
Dim observer As Management.ManagementOperationObserver
Dim mgmtscope As Management.ManagementScope
Dim oq As New Management.ObjectQuery()

If Not String.Compare(HostName, Environment.MachineName, True) = 0 Then
connect.Username = UserName
connect.Password = Password
End If

mgmtscope = New Management.ManagementScope("\\" & HostName & "\root\cimv2", connect)
mgmtscope.Connect()
oq.QueryString = strquery
searcher = New Management.ManagementObjectSearcher(mgmtscope, oq)
objcollection = searcher.Get()
GetProcess = objcollection

Catch exe As Exception
MsgBox("Failed to connect to the specified machine : " & exe.Message, MsgBoxStyle.Critical, "Connection failed")
End Try

End Function
-----------------------------------------------------------------------------
After this populate the values in the list view

To start or stop the process use the conntext menu, there use
system.Diagnostics.Process.Start(applicarton name.exe) to start(This can be got from selected value prpperty from thhe list view. similarly to stop
system.Diagnostics.Process.Stop(applicarton name.exe))

I think its ok its working for me


sdddf

QuestionADO problem Pin
obarahmeh2-Dec-06 1:36
obarahmeh2-Dec-06 1:36 
AnswerRe: ADO problem Pin
Bassam Saoud2-Dec-06 2:04
Bassam Saoud2-Dec-06 2:04 
GeneralRe: ADO problem Pin
obarahmeh2-Dec-06 2:06
obarahmeh2-Dec-06 2:06 
AnswerRe: ADO problem Pin
Guffa2-Dec-06 8:45
Guffa2-Dec-06 8:45 
GeneralRe: ADO problem Pin
obarahmeh2-Dec-06 20:16
obarahmeh2-Dec-06 20:16 
GeneralRe: ADO problem Pin
Bassam Saoud2-Dec-06 9:20
Bassam Saoud2-Dec-06 9:20 
QuestionStrings Pin
Cedrickdeorange2-Dec-06 1:12
Cedrickdeorange2-Dec-06 1:12 
AnswerRe: Strings Pin
mr_lasseter2-Dec-06 4:57
mr_lasseter2-Dec-06 4:57 
AnswerRe: Strings Pin
Taylor Kobani4-Dec-06 1:10
Taylor Kobani4-Dec-06 1:10 
AnswerRe: Strings Pin
Nouvand8-Dec-06 2:15
Nouvand8-Dec-06 2:15 
QuestionProblem with Progress Bar Pin
pathak781-Dec-06 19:49
pathak781-Dec-06 19:49 
AnswerRe: Problem with Progress Bar Pin
mr_lasseter2-Dec-06 4:55
mr_lasseter2-Dec-06 4:55 
AnswerRe: Problem with Progress Bar Pin
Taylor Kobani2-Dec-06 23:57
Taylor Kobani2-Dec-06 23:57 
AnswerRe: Problem with Progress Bar Pin
Dave Kreskowiak3-Dec-06 4:20
mveDave Kreskowiak3-Dec-06 4:20 
QuestionGmail integration in VB.net Pin
Brent Stringer1-Dec-06 18:27
Brent Stringer1-Dec-06 18:27 
AnswerRe: Gmail integration in VB.net Pin
Thomas Stockwell2-Dec-06 9:28
professionalThomas Stockwell2-Dec-06 9:28 
QuestionHow to reteive a table name in a database Pin
vincentkhoosiongleng1-Dec-06 15:17
vincentkhoosiongleng1-Dec-06 15:17 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.