ToolTip stops working after I dismiss the window once

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Jim H (nospam_at_jimsaccount.com)
Date: 10/22/04


Date: Thu, 21 Oct 2004 22:15:12 -0400

I have a dialog that I bring up as an options dialog. I have a variable for
this dialog as a member of the main application form and I create it in the
constructor. I bring up the dialog by calling
MyOptionsDialog.ShowDialog(this) and I check the DialogResult in an if
statement.

The dialog has an owner draw ListBox that contains some UserControls I
created. Each of those controls has a TooTip in it. The tool tip works
fine the first time I call ShowDialog, but every time it gets called after
that there are no tool tips for the items in the ListBox of the dialog.
Everything else about it works fine, I can click the UserControls and scroll
the ListBox. I know I must be doing something wrong. I tried catching the
Closing message and setting the e.Cancel property to true to see if it would
make a difference, but it did not.

Any ideas? Is there a way to reinitialize the tool tip? I tried putting
calls to SetToolTip in the OnVisibleChanged event of the UserControl but
that doesn't help.

Thanks,
jim



Relevant Pages

  • Re: What have I done?
    ... Did you recently change from Win2000 to XP or that is the first time you are ... > Private Sub Button1_Click(ByVal sender As System.Object, ... > in a listbox. ... > changing backcolor, forecolor and font, but the text is still invisible. ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Form Refresh problem
    ... (remove nothere from the email address if mailing direct) ... The routine then appears to run and exit correctly. ... > listbox is empty of text. ... > displays correctly, but again, just for the first time. ...
    (microsoft.public.excel.programming)
  • listView getting values back
    ... First time I am using this control in lieu of a listbox, ... able to get values and row positions back ... ...
    (microsoft.public.dotnet.languages.vb)
  • Form Refresh problem
    ... commandbuttons. ... The routine then appears to run and exit correctly. ... listbox is empty of text. ... displays correctly, but again, just for the first time. ...
    (microsoft.public.excel.programming)
  • Intellisense- Listbox auf UserControl wird nicht komplett gezeigt
    ... UserControls innerhalb von VB.NET 2005. ... welches eine Textbox und einen Button ... Diese Textbox soll Intellisense anbieten, ... dann wird von der Listbox nur ganz wenig angezeigt und zwar der Teil der eben ...
    (microsoft.public.de.german.entwickler.dotnet.vb)