Read and Write from Host to Slave through Serial Port in vb.net, Unable to stop program, break loop, without quitting?

With WinForm projects, the UI is single-threaded. The message loop (which processes incoming messages from the OS, such as button clicks) runs on the same thread as the UI event handlers, such as your tmrPoll_Tick event handler method. Therefore, until your event handler from one UI event exits, the message loop will not process the next OS message.

Since that is the case, if you sit in an infinite loop in tmrPoll_Tick it will completely lock up the UI because it will block the message loop from processing any more messages.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions