T
Tom
I am having a serious issue with my MDI child windows. This is with a
large VB.NET application that I ported over to VS 2005 from VS 2003.
The problem is that, if the child window is maximized and then closed,
it produces the following error message:
Cannot access a disposed object
Object name:'icon' in source System.Drawing
And then the whole system crashes. Again, this ONLY occurs if the MDI
child window is maximized within the MDI frame and then closed while it
is maximized.
I have reason to believe it has something to do with the MDI child
window's icon. If I remove the icon from the child window (i.e. just
use the VB.NET default) then it closes while maximized without any
problem. I thought it might have something to do with the assigned icon
not having a 16x16 size image, but I found one case where even then it
still crashed.
I am stumped at this point and can only assume this is some kind of
..NET 2.0 error/bug. This never had a problem at all in VS 2003 - only
VS 2005. Anyone have ANY ideas as to how to fix this? I really hate to
have to go thru all my windows and remove all the form icons....
Any help appreciated. Thanks in advance.
Tom
--
large VB.NET application that I ported over to VS 2005 from VS 2003.
The problem is that, if the child window is maximized and then closed,
it produces the following error message:
Cannot access a disposed object
Object name:'icon' in source System.Drawing
And then the whole system crashes. Again, this ONLY occurs if the MDI
child window is maximized within the MDI frame and then closed while it
is maximized.
I have reason to believe it has something to do with the MDI child
window's icon. If I remove the icon from the child window (i.e. just
use the VB.NET default) then it closes while maximized without any
problem. I thought it might have something to do with the assigned icon
not having a 16x16 size image, but I found one case where even then it
still crashed.
I am stumped at this point and can only assume this is some kind of
..NET 2.0 error/bug. This never had a problem at all in VS 2003 - only
VS 2005. Anyone have ANY ideas as to how to fix this? I really hate to
have to go thru all my windows and remove all the form icons....
Any help appreciated. Thanks in advance.
Tom
--