Click here to Skip to main content
15,881,812 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Vb.net - Datagridview not populated Pin
Marcus Genovese17-Jul-15 0:43
Marcus Genovese17-Jul-15 0:43 
QuestionAttempted to read or write protected memory. This is often an indication that other memory is corrupt in vb.net Pin
melbin mp16-Jul-15 3:58
melbin mp16-Jul-15 3:58 
AnswerRe: Attempted to read or write protected memory. This is often an indication that other memory is corrupt in vb.net Pin
Wes Aday16-Jul-15 4:37
professionalWes Aday16-Jul-15 4:37 
AnswerRe: Attempted to read or write protected memory. This is often an indication that other memory is corrupt in vb.net Pin
Dave Kreskowiak16-Jul-15 15:53
mveDave Kreskowiak16-Jul-15 15:53 
QuestionIEnumerable(of, DateTime, ToString Format Pin
jkirkerx13-Jul-15 10:56
professionaljkirkerx13-Jul-15 10:56 
AnswerRe: IEnumerable(of, DateTime, ToString Format Pin
Dave Kreskowiak13-Jul-15 12:04
mveDave Kreskowiak13-Jul-15 12:04 
GeneralRe: IEnumerable(of, DateTime, ToString Format Pin
jkirkerx13-Jul-15 12:25
professionaljkirkerx13-Jul-15 12:25 
QuestionNeed to talk to USB serial adapter but no port data available on laptop Pin
KarltheSaabNut13-Jul-15 5:37
professionalKarltheSaabNut13-Jul-15 5:37 
Good day,

I have a requirement to log vehicle CANBUS data from a Lawicell USB CANBUS adapter. My old XP (VB6) laptop had "Ports (Comm and LPT)" settings in the device manager that i could access and change to make sure the comm port in use by the adapter was available and one of ports 1-4 as this is the range of ports my bit of code looks for. On my new Win7 (VS2008) laptop "Ports" are not shown even though the CANUSB adapter works just fine.

The code i'm using (which worked o.k. on the old pc) uses the System.IO.Ports.SerialPort.GetPortNames method to look for comm ports, but this is causing problems on the new laptop as there don't appear to be any comm ports (when debugging, the method shows 0 ports available even with the adapter plugged in and otherwise working) and so it shows an error.

My question is what method/code could i use to either detect the adapter without using the serial port name method, or, given that i can probably find its ID and location and that the code and adapter won't be used on any other PC can i code specifically for that adapter on this single PC? If so, how.
I tried to use slelong's USB library code A USB Library to Detect USB Devices[^]
but this use's a USBClassLibrary class that isn't available in VS2008.

Many thanks,
AnswerRe: Need to talk to USB serial adapter but no port data available on laptop Pin
Michael_Davies13-Jul-15 5:48
Michael_Davies13-Jul-15 5:48 
GeneralRe: Need to talk to USB serial adapter but no port data available on laptop Pin
KarltheSaabNut13-Jul-15 6:13
professionalKarltheSaabNut13-Jul-15 6:13 
GeneralRe: Need to talk to USB serial adapter but no port data available on laptop Pin
Michael_Davies13-Jul-15 6:19
Michael_Davies13-Jul-15 6:19 
GeneralRe: Need to talk to USB serial adapter but no port data available on laptop Pin
KarltheSaabNut13-Jul-15 6:28
professionalKarltheSaabNut13-Jul-15 6:28 
QuestionData Access Layer using Entity Framework 6.0, Record Inserts Pin
jkirkerx12-Jul-15 12:03
professionaljkirkerx12-Jul-15 12:03 
Answer[SOLVED] Pin
jkirkerx12-Jul-15 12:50
professionaljkirkerx12-Jul-15 12:50 
QuestionProblem referencing controls of a dynamically created form. Pin
Abcecedarian11-Jul-15 11:14
Abcecedarian11-Jul-15 11:14 
AnswerRe: Problem referencing controls of a dynamically created form. Pin
Wes Aday11-Jul-15 15:08
professionalWes Aday11-Jul-15 15:08 
GeneralRe: Problem referencing controls of a dynamically created form. Pin
Abcecedarian11-Jul-15 20:22
Abcecedarian11-Jul-15 20:22 
AnswerRe: Problem referencing controls of a dynamically created form. Pin
Ralf Meier11-Jul-15 23:54
mveRalf Meier11-Jul-15 23:54 
GeneralRe: Problem referencing controls of a dynamically created form. Pin
Abcecedarian12-Jul-15 0:47
Abcecedarian12-Jul-15 0:47 
AnswerRe: Problem referencing controls of a dynamically created form. Pin
Ralf Meier12-Jul-15 1:02
mveRalf Meier12-Jul-15 1:02 
GeneralRe: Problem referencing controls of a dynamically created form. Pin
Abcecedarian12-Jul-15 14:59
Abcecedarian12-Jul-15 14:59 
GeneralRe: Problem referencing controls of a dynamically created form. Pin
Ralf Meier12-Jul-15 22:53
mveRalf Meier12-Jul-15 22:53 
GeneralRe: Problem referencing controls of a dynamically created form. Pin
Abcecedarian13-Jul-15 0:30
Abcecedarian13-Jul-15 0:30 
GeneralRe: Problem referencing controls of a dynamically created form. Pin
Ralf Meier13-Jul-15 8:09
mveRalf Meier13-Jul-15 8:09 
QuestionHow to fix a lagging after but a flickering createparams Code Pin
Mohamed Hamdy10-Jul-15 7:09
Mohamed Hamdy10-Jul-15 7:09 

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.