I have a simple program that uses SerialPort1. I dragged the SerialPort1 icon over to Form1. Within Form1 I can open the serial port, receive Serialport events and send data out the Serial Port.
I created a module in the project and within the module is a public Subroutine. The thought was that I could call the subroutine from Form1 and pass it an array of values I want to be sent out the serial port in the subroutine. The problem is that using the SerialPort1 comands (which works just fine in Form1) yeilds the error, " Error 1 Name 'SerialPort1' is not declared." The error occurs whether I make the SerialPort1 Properties Modifier as Friend or Public.
How do I get the module to "know about" SerialPort1??