How to make Serial Port static from the designer?
-
Hello all, my code requires the Serial Port to be static. Each time I make changes to the UI, I have to manually set the Serial Port to static. like this
private: System::IO::Ports::SerialPort^ mySerialPort;
to this
private: static System::IO::Ports::SerialPort^ mySerialPort;
Is there a way to automatically be static?
-
Hello all, my code requires the Serial Port to be static. Each time I make changes to the UI, I have to manually set the Serial Port to static. like this
private: System::IO::Ports::SerialPort^ mySerialPort;
to this
private: static System::IO::Ports::SerialPort^ mySerialPort;
Is there a way to automatically be static?
-
Thanks I have been adding the static keyword manually. But do you know if there is a way to automatically do this?
-
Thanks I have been adding the static keyword manually. But do you know if there is a way to automatically do this?