Example #1
0
        /// <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();
        }
Example #2
0
 /// <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();
 }
Example #5
0
 private void MouseLeftPanel(StatusBarPanel item)
 {
     ToolTipTimer.Stop();
     ToolTipWindow.Hide(this);
     tooltip_currently_showing = null;
 }
Example #6
0
 private void MouseEnteredPanel(StatusBarPanel item)
 {
     tooltip_currently_showing = item;
     ToolTipTimer.Start();
 }
Example #7
0
 private void dgvMain_CellMouseLeave(object sender, DataGridViewCellEventArgs e)
 {
     ToolTipTimer.Stop();
     toolTip1.Hide(dgvMain);
     ToolTipRowIndex = -1;
 }