Click here to Skip to main content
15,893,668 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Cell painting in datagridview Pin
Eddy Vluggen18-May-15 2:43
professionalEddy Vluggen18-May-15 2:43 
Questiongrouping is not working Pin
hussain54813-May-15 6:30
hussain54813-May-15 6:30 
AnswerRe: grouping is not working Pin
Dave Kreskowiak13-May-15 14:43
mveDave Kreskowiak13-May-15 14:43 
Question[RESOLVED] Can a COM port be reached by it's name or GUID Class ID instead of the COM Port name? Pin
SepPax13-May-15 1:12
SepPax13-May-15 1:12 
AnswerRe: Can a COM port be reached by it's name or GUID Class ID instead of the COM Port name? Pin
Richard Andrew x6413-May-15 5:48
professionalRichard Andrew x6413-May-15 5:48 
GeneralRe: Can a COM port be reached by it's name or GUID Class ID instead of the COM Port name? Pin
SepPax13-May-15 10:28
SepPax13-May-15 10:28 
GeneralRe: Can a COM port be reached by it's name or GUID Class ID instead of the COM Port name? Pin
Tim Carmichael14-May-15 2:34
Tim Carmichael14-May-15 2:34 
Answer[Resolved] Can a COM port be reached by it's name or GUID Class ID instead of the COM Port name? Pin
SepPax16-May-15 5:52
SepPax16-May-15 5:52 
Works well with name search

Dim port as string
Dim device as string

Try
Using searcher As New ManagementObjectSearcher("root\CIMV2", "SELECT * FROM Win32_SerialPort")

For Each queryObj As ManagementObject In searcher.Get()
port = queryObj("DeviceID")
device = queryObj("Description")
Next
End Using
Catch err As ManagementException
MessageBox.Show("An error occurred while querying for WMI data: " & err.Message)
End Try


check device for what you look for.
SepPax

QuestionDataGridView selection and focus Pin
Kenny-A11-May-15 11:34
Kenny-A11-May-15 11:34 
QuestionSerial data receive routing Pin
SepPax11-May-15 7:18
SepPax11-May-15 7:18 
AnswerRe: Serial data receive routing Pin
Richard MacCutchan11-May-15 7:38
mveRichard MacCutchan11-May-15 7:38 
GeneralRe: Serial data receive routing Pin
SepPax11-May-15 10:07
SepPax11-May-15 10:07 
GeneralRe: Serial data receive routing Pin
Sascha Lefèvre11-May-15 10:24
professionalSascha Lefèvre11-May-15 10:24 
GeneralRe: Serial data receive routing Pin
SepPax11-May-15 20:42
SepPax11-May-15 20:42 
GeneralRe: Serial data receive routing Pin
Richard MacCutchan11-May-15 21:12
mveRichard MacCutchan11-May-15 21:12 
GeneralRe: Serial data receive routing Pin
SepPax12-May-15 1:56
SepPax12-May-15 1:56 
GeneralRe: Serial data receive routing Pin
Richard MacCutchan12-May-15 5:05
mveRichard MacCutchan12-May-15 5:05 
GeneralRe: Serial data receive routing Pin
SepPax13-May-15 0:49
SepPax13-May-15 0:49 
QuestionUse of an object without creating an instance...error Pin
SepPax11-May-15 0:02
SepPax11-May-15 0:02 
AnswerRe: Use of an object without creating an instance...error Pin
Sascha Lefèvre11-May-15 0:15
professionalSascha Lefèvre11-May-15 0:15 
GeneralRe: Use of an object without creating an instance...error Pin
SepPax11-May-15 0:41
SepPax11-May-15 0:41 
GeneralRe: Use of an object without creating an instance...error Pin
Sascha Lefèvre11-May-15 1:10
professionalSascha Lefèvre11-May-15 1:10 
GeneralRe: Use of an object without creating an instance...error Pin
SepPax11-May-15 7:09
SepPax11-May-15 7:09 
GeneralRe: Use of an object without creating an instance...error Pin
Sascha Lefèvre11-May-15 7:17
professionalSascha Lefèvre11-May-15 7:17 
QuestionRetrieve document file stored in sql server database Pin
careLess aucim6-May-15 19:08
careLess aucim6-May-15 19:08 

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.