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.UnsafeNat iveMethods.Disp atchMessageW(MS G& msg)
at
System.Windows. Forms.Component Manager.System. Windows.Forms.U nsafeNativeMeth o
ds+IMsoComponen tManager.FPushM essageLoop(Int3 2 dwComponentID, Int32 reason,
Int32 pvLoopData)
at System.Windows. Forms.ThreadCon text.RunMessage LoopInner(Int32 reason,
ApplicationCont ext context)
at System.Windows. Forms.ThreadCon text.RunMessage Loop(Int32 reason,
ApplicationCont ext context)
at System.Windows. Forms.Applicati on.Run(Form mainForm)
Please Help me if you can ....
I look foreward to hearing from you.
Alireza Haghshenass