T
timnels
I have an issue where I have a user control that is launched into a
floating form. At some point later, I allow the user to "unfloat" the
user control by reparenting it on a split container in another form.
Problem is if I wake a tooltip when the window is floated, and then try
the same thing when it is reparented, the app crashes with " Cannot
access a disposed object.Object name: 'Form'.
Presumably, this is a result of the tooltips still keeping a reference
to the original form (container).
I know that tooltips have to be found using reflection and the controls
IContainer, but I am not sure how to go about this.
Is there a way to "reorient" all the tooltips to the new container?
floating form. At some point later, I allow the user to "unfloat" the
user control by reparenting it on a split container in another form.
Problem is if I wake a tooltip when the window is floated, and then try
the same thing when it is reparented, the app crashes with " Cannot
access a disposed object.Object name: 'Form'.
Presumably, this is a result of the tooltips still keeping a reference
to the original form (container).
I know that tooltips have to be found using reflection and the controls
IContainer, but I am not sure how to go about this.
Is there a way to "reorient" all the tooltips to the new container?