TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Ryan Alford
NA
1.7k
1.7m
Serial Port problem
Nov 27 2007 11:14 AM
I am writing an application that listens to a serial port(COM1) for input from a barcode scanner. The problem I am having is when I move between different forms. In the form load event on each form, I set the port name:
serialPort.PortName = "COM1"
to the correct COM port. Whenever I am ready to move to another form, I call:
serialPort.Close()
serialPort.Dispose()
However, when I open the next form, I get the "access denied" error when trying to open the port again.
I am using the SerialPort control on the form rather than programmatically creating a serialPort.
Reply
Answers (
8
)
dBase connection Error
Animated gif from embedded resource gif - doesnt work