private void CloseTooltip() { // Since we reuse one actual tooltip window, closing the tooltip involves // hiding the window and resetting the internal control that actually // displays the data. fadingTimer.Stop(); window.Hide(); winData.SizeChanged -= OnWinDataSizeChanged; window.Controls.Remove(winData); winData.Dispose(); winData = null; CreateOrInitTooltipWindow(); }
private void CloseTooltip() { fadingTimer.Stop(); window.MouseLeave -= OnToolTipMouseLeave; window.Hide(); window.Close(); window = null; CreateTooltipWindows(); }