Microsoft Visual Studio Projects DISCUSSION

Serial Port in VB 2010 ??? [solved]

Started by syedzainnasir Serial Port in VB 2010 ??? [solved]
2 replies 248 views 2 participants
Latest activity · 18 Feb 2017

Serial Port in VB 2010 ??? [solved]

syedzainnasir Microsoft Visual Studio Projects Forum
#1
I am trying to create a serial port in VB.net using code only. Because I am creating a class library I cannot use the built-in component. I have tried instantiating a new SeialPort() object, but that does not seem to be enough. I'm sure there is something simple I am missing and any help would be greatly appreciated! Thanks!

P.S. I should add that the problem I am having at this time is getting the code to handle the datareceived event. Other than that it might be working, but I can't tell because of that problem.

Community replies 2

Re: Serial Port in VB 2010 ??? [solved]

#2
[quote=Dillon post_id=13 time=1487397175 user_id=52] I am trying to create a serial port in VB.net using code only. Because I am creating a class library I cannot use the built-in component. I have tried instantiating a new SeialPort() object, but that does not seem to be enough. I'm sure there is something simple I am missing and any help would be greatly appreciated! Thanks!

P.S. I should add that the problem I am having at this time is getting the code to handle the datareceived event. Other than that it might be working, but I can't tell because of that problem. [/quote]
Thanks to share your problem, I think this is the possible solution of your problem based on code.

[url=http://www.theengineeringprojects.com/2012/10/microsoft-visual-basic-2010-com-port.html]USE SERIAL PORT IN VB 2010[/url]

Re: Serial Port in VB 2010 ??? [solved]

#3
[quote=Junaid_Shahid post_id=14 time=1487397307 user_id=48] [quote=Dillon post_id=13 time=1487397175 user_id=52] I am trying to create a serial port in VB.net using code only. Because I am creating a class library I cannot use the built-in component. I have tried instantiating a new SeialPort() object, but that does not seem to be enough. I'm sure there is something simple I am missing and any help would be greatly appreciated! Thanks!

P.S. I should add that the problem I am having at this time is getting the code to handle the datareceived event. Other than that it might be working, but I can't tell because of that problem. [/quote]
Thanks to share your problem, I think this is the possible solution of your problem based on code.

[url=http://www.theengineeringprojects.com/2012/10/microsoft-visual-basic-2010-com-port.html]USE SERIAL PORT IN VB 2010[/url] [/quote]
Yeah ! I have done, that's great code is working fine :)
TEP COMMUNITY