Dear All,
I am facing a problem which I could not solve. I am writing an application
which uses a notify icon and a context menu bound to it to show modal dialog
forms. When these forms is shown there is no problem but while I am closing
any of them which is shown in modal form throw an exception which is
described below :
Message : External component has thrown an exception.
StackTrace : at
System.Windows.Forms.UnsafeNativeMethods.DispatchM essageW(MSG& msg)
at
System.Windows.Forms.ComponentManager.System.Windo ws.Forms.UnsafeNativeMetho
ds+IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason,
Int32 pvLoopData)
at System.Windows.Forms.ThreadContext.RunMessageLoopI nner(Int32 reason,
ApplicationContext context)
at System.Windows.Forms.ThreadContext.RunMessageLoop( Int32 reason,
ApplicationContext context)
at System.Windows.Forms.Application.Run(Form mainForm)
Please Help me if you can ....
I look foreward to hearing from you.
Alireza Haghshenass