private void chkFixedwidth_CheckedChanged(object sender, EventArgs e) { txtCode.Font = lblStart.Font = lblEnd.Font = chkFixedwidth.Checked ? new Font("Courier New", 9) : new Font("Microsoft Sans Serif", 8); }