J
Jim H
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
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