Author Topic: MessageBox cures problem is it a timing issue??  (Read 4327 times)

GlennP

  • Frequent Contributor
  • ****
  • Posts: 141
MessageBox cures problem is it a timing issue??
« on: September 28, 2010, 07:18:30 am »
 Hi All,

Bit of an odd one,  I am reading back some Data via a serial port but it appears not to be updated on the form so I was debugging the app with a message box to hold the program flow it sprang to life.  It was the MessageBox that was slowing or block some thread. Now I am after a way of simulating the action of a message box appearance.  Thread.Sleep() and for(); do not cause the right sort of delay I think, where thread sleep blocks the UI thread.  HELP!

Glenn

GlennP

  • Frequent Contributor
  • ****
  • Posts: 141
Re: MessageBox cures problem is it a timing issue??
« Reply #1 on: September 28, 2010, 09:51:48 am »
Hello,
It seems as thought my Form update was not taking place right
   if(Form1.ActiveForm != null)   Form1.ActiveForm.Update(); cured the problem
Thanks
   Glenn