views:

6

answers:

0

I develop custom DesignSurface base on Powerful DesignSurface (Extended) and set UseSmartTags.
it's work properly for standard .net control.
but when i using some third-party component, (in case using 2 instance of one control),and click on first control and change some property using smartTag, and then click on second component smart tag, application crash, with this error message:

"Object reference not set to an instance of an object."
StackTrace:
at System.Windows.Forms.Design.Behavior.BehaviorService.AdornerWindow.MouseHook.MouseHookProc(Int32 nCode, IntPtr wparam, IntPtr lparam)
at System.Windows.Forms.UnsafeNativeMethods.GetMessageW(MSG& msg, HandleRef hWnd, Int32 uMsgFilterMin, Int32 uMsgFilterMax)
at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData) at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.RunDialog(Form form) at System.Windows.Forms.Form.ShowDialog(IWin32Window owner) at System.Windows.Forms.Form.ShowDialog()

Note: in VS2008 designer, i not have any problem !!!

How to solve this problem ?

If not, can i disable smartTag for specific controls ???

Please help me!
Thanks in advanced