ToolTip stops working after I dismiss the window once
From: Jim H (nospam_at_jimsaccount.com)
Date: 10/22/04
- Next message: Rob Maushardt: "Re: VB6's Nothing & C# RCW Error"
- Previous message: Austin Ehlers: "Re: C# book for 16 yo?"
- Next in thread: Kevin Yu [MSFT]: "RE: ToolTip stops working after I dismiss the window once"
- Reply: Kevin Yu [MSFT]: "RE: ToolTip stops working after I dismiss the window once"
- Messages sorted by: [ date ] [ thread ]
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
- Next message: Rob Maushardt: "Re: VB6's Nothing & C# RCW Error"
- Previous message: Austin Ehlers: "Re: C# book for 16 yo?"
- Next in thread: Kevin Yu [MSFT]: "RE: ToolTip stops working after I dismiss the window once"
- Reply: Kevin Yu [MSFT]: "RE: ToolTip stops working after I dismiss the window once"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|