public static bool ControlCheckOutNull(System.Windows.Forms.Control ctrl, string targt, System.Windows.Forms.ToolTip t) { if (string.IsNullOrEmpty(targt)) { t.ForeColor = System.Drawing.Color.Red; t.Show("此项不能为空!", ctrl, 2000);