visual studio remove part of my code.....

  • Thread starter Thread starter mmeftahpour
  • Start date Start date
M

mmeftahpour

Guest
I really appreciate it, if someone could help me on this issue…..

I have a Serial port control in my program and also, I add the DataRecieved handler ….

this->SensorPort->PortName = L"COM9";

this->SensorPort->DataReceived += gcnew SerialDataReceivedEventHandler(this, &MainForm::DataRecievedFromSensor);

and everything works fine….

The problem starts when I start to debug program, after first run Microsoft visual studio editor erase the “DataRecieved” handle from source code….

Then each time before running, I need to add handler again….

Continue reading...
 
Back
Top