protected override void OnLeave(EventArgs e) { IHelpLabel frm = FindForm() as IHelpLabel; if (frm != null) { frm.WriteHelp(""); } base.OnLeave(e); }
protected override void OnEnter(EventArgs e) { if (Enabled) { IHelpLabel frm = FindForm() as IHelpLabel; if (frm != null) { frm.WriteHelp(HelpLabelText); } } base.OnEnter(e); }
protected override void OnLeave(EventArgs e) { IHelpLabel frm = FindForm() as IHelpLabel; if (frm != null) { frm.WriteHelp(""); } //Console.WriteLine("OnLeave"); base.OnLeave(e); WriteDat(); }
protected override void OnLeave(EventArgs e) { if (Enabled) { IHelpLabel frm = FindForm() as IHelpLabel; if (frm != null) { frm.WriteHelp(""); } this.Invalidate(); } base.OnLeave(e); }
protected override void OnEnter(EventArgs e) { if (Enabled) { IHelpLabel frm = FindForm() as IHelpLabel; if (frm != null) { frm.WriteHelp(HelpLabelText); } this.DefaultCellStyle.SelectionBackColor = SystemColors.Highlight; this.DefaultCellStyle.SelectionForeColor = SystemColors.HighlightText; this.Invalidate(); } base.OnEnter(e); }
protected override void OnEnter(EventArgs e) { if (Enabled) { IHelpLabel frm = FindForm() as IHelpLabel; if (frm != null) { frm.WriteHelp(HelpLabelText); } } base.OnEnter(e); btnClear.Visible = CanReset && ((Value != null) || !CanHideButtons); btnDropDown.Visible = CanDropDown && ((SetClass != null) || !CanHideButtons); SendKeys.Send("{END}+{HOME}"); }
protected override void OnLeave(EventArgs e) { if (Enabled) { IHelpLabel frm = FindForm() as IHelpLabel; if (frm != null) { frm.WriteHelp(""); } this.DefaultCellStyle.SelectionBackColor = SystemColors.Info; this.DefaultCellStyle.SelectionForeColor = SystemColors.InfoText; this.Invalidate(); } if (this.IsCurrentCellInEditMode) { CommitEdit(DataGridViewDataErrorContexts.LeaveControl); EndEdit(); } base.OnLeave(e); }