Hi,
I am creating a code where thread is used on start button.In the Mythread method ,I am accessing the class which read and write bytes using serial port. And in main form progress bar is used to show the reading and writing process is start or end.And this progressBar Method is called by using event and delegate. My problem is when I start debugging the code, as soon as it comes to event which handle progress bar Method the Cross Thread exception error is occured. If I comment the code in method it will debug next code smoothly. So is it possible to debug the entire code without commenting my progressbar method so I can Check the code in that perticular method also.
Please Help Me!!