Does anyone know how VB.net communicates with a Port (like 1) ? I have a credit card machine hooked up and running XP, but VB .net does not have a MSComm tool. I am not sure how to get it to talk to it.
Please Help!!
Texas Twang "yeehaw"
Printable View
Does anyone know how VB.net communicates with a Port (like 1) ? I have a credit card machine hooked up and running XP, but VB .net does not have a MSComm tool. I am not sure how to get it to talk to it.
Please Help!!
Texas Twang "yeehaw"
Have you tried setting a reference to the DLL you used in VB6.
No, I have not tried that. I was not sure of the backwards compat issue. I am just starting to learn the VB.net stuff and they have changed SO much that I did not trust spending the time trying to get it to work with the old stuff! THanks, I will give that a try!
:)
With the exception of a few controls and DLLs, I've found most of the older DLLs work just fine with VBdN. I imagine redistribution may be a little trickier, but they should still work.
The System.IO.Stream classes should allow you to read from com ports..dont ask me how though.:eek:
something like this
probably will have to play around with that...but I think that can put you on the correct path.Code:
Comm = CType((New System.IO.FileInfo("COM1").Open( _
FileMode.Open, FileAccess.Read, FileShare.None), _
System.IO.FileStream)
CommRead = New StreamReader(Comm)
Thanks Cander. Another good idea!! I will also try this!
Many thanks!