1.获取屏幕分辨率
int CX_SCREEN = Screen.PrimaryScreen.Bounds.Width;
int CY_SCREEN = Screen.PrimaryScreen.Bounds.Height;
2.最大化 最小化
this.WindowState = FormWindowState.Maximized;
//this.ClientSize = new System.Drawing.Size(CX_SCREEN >> 1, CY_SCREEN >> 1);
tableLayoutPanel1.Dock = DockStyle.Fill;
3. 数据格式 StringBuilder
StringBuilder sb = new StringBuilder();
pos_A = LTDMC.dmc_get_position(0, axis);
speed = LTDMC.dmc_read_current_speed(0, axis);
sb.AppendFormat("Speed={0},", speed);
sb.AppendFormat("X={0}", pos_A);