Click here to Skip to main content
16,008,469 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionMultiColumn ComboBox from DataGridViewComboBoxEditingControl Class(Urgent) Pin
HemaRawat9-Jan-06 22:54
HemaRawat9-Jan-06 22:54 
AnswerRe: MultiColumn ComboBox from DataGridViewComboBoxEditingControl Class(Urgent) Pin
Dave Kreskowiak10-Jan-06 4:52
mveDave Kreskowiak10-Jan-06 4:52 
GeneralRe: MultiColumn ComboBox from DataGridViewComboBoxEditingControl Class(Urgent) Pin
HemaRawat10-Jan-06 17:12
HemaRawat10-Jan-06 17:12 
GeneralRe: MultiColumn ComboBox from DataGridViewComboBoxEditingControl Class(Urgent) Pin
Dave Kreskowiak11-Jan-06 1:00
mveDave Kreskowiak11-Jan-06 1:00 
QuestionHow to know the host name of an IP Pin
Paritos9-Jan-06 22:21
Paritos9-Jan-06 22:21 
AnswerRe: How to know the host name of an IP Pin
Dave Kreskowiak10-Jan-06 4:36
mveDave Kreskowiak10-Jan-06 4:36 
Questionconvert WMI script Pin
sentmemail9-Jan-06 20:40
sentmemail9-Jan-06 20:40 
AnswerRe: convert WMI script Pin
Dave Kreskowiak10-Jan-06 4:34
mveDave Kreskowiak10-Jan-06 4:34 
The System.Management namesapce has everything you'll need to do this. I wish it was a bit simpler to use though...
Import System.Management
.
.
.
    '  SELECT * FROM Win32_Process WHERE Name='processName'
    Dim query As New SelectQuery("Win32_Process", String.Format("Name='{0}'", processName) )
 
    ' Initialize an object searcher with this query
    Dim searcher As New ManagementObjectSearcher(query)
 
    ' Define arguments for our WMI method call on each object returned, in our
    ' case, Nothing (null)
    Dim methodArgs() As Object = {Nothing}
 
    ' Get the resulting collection or Process objects and loop through it
    For Each ManagementObject foundProcess In searcher.Get()
        Debug.WriteLine( String.Format("Killing process: {0}", foundProcess.Properties("Name") ) )
        foundProcess.InvokeMethod("Terminate", Nothing)
    Next



RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

GeneralRe: convert WMI script Pin
sentmemail10-Jan-06 4:42
sentmemail10-Jan-06 4:42 
GeneralRe: convert WMI script Pin
Dave Kreskowiak10-Jan-06 4:52
mveDave Kreskowiak10-Jan-06 4:52 
QuestionGarbage Collection In VB.Net Pin
kpr_psna9-Jan-06 18:28
kpr_psna9-Jan-06 18:28 
AnswerRe: Garbage Collection In VB.Net Pin
Steve Pullan9-Jan-06 19:27
Steve Pullan9-Jan-06 19:27 
GeneralRe: Garbage Collection In VB.Net Pin
Colin Angus Mackay9-Jan-06 21:01
Colin Angus Mackay9-Jan-06 21:01 
GeneralRe: Garbage Collection In VB.Net Pin
kpr_psna9-Jan-06 21:12
kpr_psna9-Jan-06 21:12 
GeneralRe: Garbage Collection In VB.Net Pin
Dave Kreskowiak10-Jan-06 4:08
mveDave Kreskowiak10-Jan-06 4:08 
GeneralRe: Garbage Collection In VB.Net Pin
Steve Pullan10-Jan-06 14:37
Steve Pullan10-Jan-06 14:37 
AnswerRe: Garbage Collection In VB.Net Pin
[Marc]9-Jan-06 19:37
[Marc]9-Jan-06 19:37 
GeneralRe: Garbage Collection In VB.Net Pin
Colin Angus Mackay9-Jan-06 21:03
Colin Angus Mackay9-Jan-06 21:03 
GeneralRe: Garbage Collection In VB.Net Pin
[Marc]10-Jan-06 9:00
[Marc]10-Jan-06 9:00 
GeneralRe: Garbage Collection In VB.Net Pin
kpr_psna9-Jan-06 21:13
kpr_psna9-Jan-06 21:13 
GeneralRe: Garbage Collection In VB.Net Pin
Colin Angus Mackay9-Jan-06 22:34
Colin Angus Mackay9-Jan-06 22:34 
GeneralRe: Garbage Collection In VB.Net Pin
kpr_psna10-Jan-06 0:12
kpr_psna10-Jan-06 0:12 
GeneralRe: Garbage Collection In VB.Net Pin
Dave Kreskowiak10-Jan-06 4:14
mveDave Kreskowiak10-Jan-06 4:14 
AnswerRe: Garbage Collection In VB.Net Pin
Guffa9-Jan-06 22:32
Guffa9-Jan-06 22:32 
GeneralRe: Garbage Collection In VB.Net Pin
kpr_psna10-Jan-06 0:13
kpr_psna10-Jan-06 0:13 

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.