Would this help?
http://www.codeproject.com/KB/vb/CNC_Viewer.aspx