E
Emmanuel_
Hi,
I have the following problem, most probably a bug:
I have a windows form that incorporates one Button control and one ToolTip
control.
On the form's Load event, I am setting the tooltip message of the button by
calling the SetTooltip() method.
On the button's Click event the form is disposed using the .Dispose()
method.
If the form is opened from another form using the .ShowDialog() method, if
the button is pressed I get a NullReferenceException.
Notes:
1. If the form is called using the .Show() method then the exception
does not occur.
2. If the SetTooltip() method is not called then the exception does not
occur.
3. If the .Close() method is used on the Click event, instead of the
Dispose(), and the .Dispose method is called imediatelly after the
..ShowDialog() method, the exception does not occur.
4. This problem did not occur on the .NET 1.1
Is this some kind of bug ?
Thanks
Emmanuel
I have the following problem, most probably a bug:
I have a windows form that incorporates one Button control and one ToolTip
control.
On the form's Load event, I am setting the tooltip message of the button by
calling the SetTooltip() method.
On the button's Click event the form is disposed using the .Dispose()
method.
If the form is opened from another form using the .ShowDialog() method, if
the button is pressed I get a NullReferenceException.
Notes:
1. If the form is called using the .Show() method then the exception
does not occur.
2. If the SetTooltip() method is not called then the exception does not
occur.
3. If the .Close() method is used on the Click event, instead of the
Dispose(), and the .Dispose method is called imediatelly after the
..ShowDialog() method, the exception does not occur.
4. This problem did not occur on the .NET 1.1
Is this some kind of bug ?
Thanks
Emmanuel