468,103 Members | 1,319 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,103 developers. It's quick & easy.

MDI Icon dispose error?

I keep getting this message

System.ObjectDisposedException: Cannot access a disposed object.

Object name: 'Icon'.

at System.Drawing.Icon.get_Handle()

at System.Drawing.Icon.get_Size()

at System.Drawing.Icon.ToBitmap()

at System.Windows.Forms.MdiControlStrip.GetTargetWind owIcon()

at System.Windows.Forms.MdiControlStrip..ctor(IWin32W indow target)

at System.Windows.Forms.Form.UpdateMdiControlStrip(Bo olean maximized)

at System.Windows.Forms.Form.WmSize(Message& m)

at System.Windows.Forms.Form.WndProc(Message& m)

at System.Windows.Forms.Control.ControlNativeWindow.O nMessage(Message& m)

at System.Windows.Forms.Control.ControlNativeWindow.W ndProc(Message& m)

at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg,
IntPtr wparam, IntPtr lparam)

why? it seems to be coming internally. and it seems like its the icon for
the form that is open in the mdi window but i cant figure out why that would
get disposed randomly
Jul 18 '06 #1
0 1319

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

10 posts views Thread by Zeljko | last post: by
3 posts views Thread by Andrew Mueller | last post: by
3 posts views Thread by jm | last post: by
reply views Thread by kapcreations | last post: by
5 posts views Thread by IcingDeath via DotNetMonster.com | last post: by
4 posts views Thread by techspirit | last post: by
6 posts views Thread by eSolTec, Inc. 501(c)(3) | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.