/// <include file='doc\ToolTip.uex' path='docs/doc[@for="UpDownBase.ToolTip.StartTimer"]/*' /> /// <devdoc> /// Starts the timer hiding Positioned ToolTips /// </devdoc> private void StartTimer(IWin32Window owner, int interval) { if (timer == null) { timer = new ToolTipTimer(owner); // Add the timer handler timer.Tick += new EventHandler(TimerHandler); } timer.Interval = interval; timer.Start(); }
/// <include file='doc\ToolTip.uex' path='docs/doc[@for="UpDownBase.UpDownButtons.StopTimer"]/*' /> /// <devdoc> /// Stops the timer for hiding Positioned ToolTips /// </devdoc> protected void StopTimer() { //VSWhidbey 363538: hold a local ref to timer //so that a posted message doesn't null this //out during disposal. ToolTipTimer timerRef = timer; if (timerRef != null) { timerRef.Stop(); timerRef.Dispose(); timer = null; } }
protected void StopTimer() { ToolTipTimer timer = this.timer; if (timer != null) { timer.Stop(); timer.Dispose(); this.timer = null; } }
private void StartTimer(IWin32Window owner, int interval) { if (this.timer == null) { this.timer = new ToolTipTimer(owner); this.timer.Tick += new EventHandler(this.TimerHandler); } this.timer.Interval = interval; this.timer.Start(); }
private void MouseLeftPanel(StatusBarPanel item) { ToolTipTimer.Stop(); ToolTipWindow.Hide(this); tooltip_currently_showing = null; }
private void MouseEnteredPanel(StatusBarPanel item) { tooltip_currently_showing = item; ToolTipTimer.Start(); }
private void dgvMain_CellMouseLeave(object sender, DataGridViewCellEventArgs e) { ToolTipTimer.Stop(); toolTip1.Hide(dgvMain); ToolTipRowIndex = -1; }