# CLOSE TOOLTIP?

**URL:** <https://forum.alternetsoft.com/t/close-tooltip/37>\
**Category:** AlterNET Studio Support\
**Tags:** wpf, editor\
**Created:** [December 14, 2020, 12:00am UTC](https://forum.alternetsoft.com/t/close-tooltip/37 "2020-12-14T00:00:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![lucid.dion](https://forum.alternetsoft.com/user_avatar/forum.alternetsoft.com/lucid.dion/32/71_2.png) [@lucid.dion](https://forum.alternetsoft.com/u/lucid.dion)\
**Post date:** [December 14, 2020, 12:00am UTC](https://forum.alternetsoft.com/t/close-tooltip/37/1 "2020-12-14T00:00:00Z")

</div>

Is there a method to force the Editor tooltip to close in code? It remains visible if we switch tabs in our application, while the Editor is in a tab.

---

<div class="post-metadata">

**Author:** ![dmitry.medvedev](https://forum.alternetsoft.com/user_avatar/forum.alternetsoft.com/dmitry.medvedev/32/27_2.png) [@dmitry.medvedev](https://forum.alternetsoft.com/u/dmitry.medvedev)\
**Post date:** [December 14, 2020, 12:00am UTC](https://forum.alternetsoft.com/t/close-tooltip/37/2 "2020-12-14T00:00:00Z")

</div>

Hi,  
Could you confirm you're using WPF version, as with WinForms it should close code completion windows automatically upon loosing focus?  
To manually close code completion tooltip you can use the following code:  
edit.CodeCompletionHint.Close(false);  
  
Regards,  
Dmitry

---

<div class="post-metadata">

**Author:** ![lucid.dion](https://forum.alternetsoft.com/user_avatar/forum.alternetsoft.com/lucid.dion/32/71_2.png) [@lucid.dion](https://forum.alternetsoft.com/u/lucid.dion)\
**Post date:** [December 14, 2020, 12:00am UTC](https://forum.alternetsoft.com/t/close-tooltip/37/3 "2020-12-14T00:00:00Z")

</div>

Yes, it's WPF. And thanks, that did the trick!

---

<div class="post-metadata">

**Author:** ![dmitry.medvedev](https://forum.alternetsoft.com/user_avatar/forum.alternetsoft.com/dmitry.medvedev/32/27_2.png) [@dmitry.medvedev](https://forum.alternetsoft.com/u/dmitry.medvedev)\
**Post date:** [December 15, 2020, 12:00am UTC](https://forum.alternetsoft.com/t/close-tooltip/37/4 "2020-12-15T00:00:00Z")

</div>

Thank you for confirming.  
We were able to reproduce code completion box/tooltip staying open when you switch to different tab, and most likely will get it fixed before coming update.  
  
Kind regards,  
Dmitry
