I intended to make an interface so that the data can be viewed on a computer, but I am confused make an interface with c #, does anyone have a sample program with c # arduino xbee? or how to connect data between arduino + xbee + sensor to apllication with c# because my code not running..there my code

Thanks PaulS for uploading your C# program dealing with multithreading. I have been experimenting for 2 days with Arduino and C# and trying to synchronize communications between the two. I am working on a large project that uses a PC based program to control an Arduino based test fixture. I need control over the process so that the PC program knows when to send commands and what to expect back from the Arduino.