首先建立数字显示类: using System; using System.Drawing; namespace CsDev { class SevenSegmentDispay { Graphics grph; //0,1,2,3,4,5,6,7,8,9 static byte[,] bySegment = { { 1, 1, 1, 0, 1, 1,1 }, { 0, 0, 1, 0, 0,1, 0 }, {1,0,1,1,1,0,1},{1,0,1,1,0,1,1}, {0,1,1,1,0,