Any .NET objects or controls out there for RS232 control?

15 years 9 months ago #2490154 by sidekick

I'm looking to see if there is any .NET objects or controls out there that cover the communications between RoboteQ and a computer. I've written what I needed already in VB.Net but I do ignore some input from the controller and I'm sure I haven't covered all the error conditions, since I haven't come across any :). Just wondering if anyone has some public code out there that covers all input and output. Thank you.

Please Log in or Create an account to join the conversation.

15 years 9 months ago #2496520 by tonysantoni
Use file MSCOMM32.OCX, which is a Microsot RS232 ActiveX control File must be installed in:
c:winntsystem32mscomm32.ocx
In Visual Basic.NET go to
tools > customize toolbox and click "COM components"
Search for Microsoft Communication Control 6.0 (use BROWSE if you do not see it, and use path above) and click the box
under the column Name to make it appear on tollbox under Components. It will appear as in toolbox as MScomm.
Help is available in Microsoft Knowledge Base at:

<A href=" msdn.microsoft.com/library/default.asp?u...8/dt_vbobjComm_P.asp " target=_blank> msdn.microsoft.com/library/default.asp?u...8/dt_vbobjComm_P.asp

This OCX is easy to use and I have various code I can share with you using it. It is in VB6.0 but the porting to Visual Basic.NET is obvious,
E-mail me at

t<A href="This email address is being protected from spambots. You need JavaScript enabled to view it." target=_blank>This email address is being protected from spambots. You need JavaScript enabled to view it.

if you need file mscomm32.ocx or application code.

Robotony

Please Log in or Create an account to join the conversation.

15 years 9 months ago #2510779 by sidekick

Thank you very much, Robotony. I've been using some publicly available COM port code for use in VB.NET (using the API) because of difficulties I had at one point (for another project) debugging programs in VB.NET that use .OCX controls. I went unwillingly to VB.NET mainly because of the power of true classes it offers, but my real roots lay in VB3-6. I may take you up on that offer of app code if I have any difficulty with the .NET objects I created, no trouble at the moment though, but I know I'm probably not handling all the possible error conditions that may arise.
Thanks again for your quick response!

Please Log in or Create an account to join the conversation.

Moderators: tonysantoni
Time to create page: 0.119 seconds