Bug with InfoTip.Hide Method

SyntaxEditor for Windows Forms Forum

Posted 19 years ago by Boyd - Sr. Software Developer, Patterson Consulting, LLC
Avatar
I have an MDI application with SyntaxEditor in the MDI child. When the user switches from one SyntaxEditor child window to the next, I want to close any existing IntelliPrompt items that might be visible in the editor that looses focus. To do this, I did an override of the 'OnLostFocus' event for the form containing Syntax Editor and added the following code:
editor.IntelliPrompt.InfoTip.Hide();
editor.IntelliPrompt.QuickInfo.Hide();
editor.IntelliPrompt.MemberList.Abort();
For some reason, the InfoTip is not closing with the Hide method call above. I've even stepped through the 'OnLostFocus' event to make sure the code was executing. Interestingly enough, the 'Visible' property for InfoTip was also returning a 'False' at that point in the code even though it was displayed.

Let me know if there's anything I can do or more information I can provide.

Comments (4)

Posted 19 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Hi Boyd,

Could you possibly throw together a small sample project to demo this problem and email to me? That would help. Thanks!


Actipro Software Support

Posted 19 years ago by Boyd - Sr. Software Developer, Patterson Consulting, LLC
Avatar
I sent you a sample project to demo the bug. Let me know if you need anything else.
Posted 19 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Got it... I'll reply via email. The answer is that you should use OnLeave of your form, not OnLostFocus.

[ 01-29-2005: Message edited by: Actipro Software Support ]


Actipro Software Support

Posted 19 years ago by Boyd - Sr. Software Developer, Patterson Consulting, LLC
Avatar
Got the e-mail... thanks for the solution.
The latest build of this product (v24.1.0) was released 2 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.