Showing a hidden floating form with DockManager
I have run into a problem when attempting to show a floating form that has been hidden. I was under the impression that SetDockVisibility() was responsible for setting the visibility of floating controls as well as docked controls, however I am getting a NullReferenceException when calling SetDockVisibility() on a control that has been floated.
When the control is hidden by clicking the Close button in the upper right corner of the floating form and then I try to make the form visible again using SetDockVisibility(), the following exception is thrown:
System.NullReferenceException: Object reference not set to an instance of an object.
at Syncfusion.Windows.Forms.Tools.FloatingForm.UpdateFormBorderStyle()
at Syncfusion.Windows.Forms.Tools.FloatingForm.OnVisibleChanged(EventArgs e)
at System.Windows.Forms.Control.WmShowWindow(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ContainerControl.WndProc(Message& m)
at System.Windows.Forms.Form.WmShowWindow(Message& m)
at System.Windows.Forms.Form.WndProc(Message& m)
at Syncfusion.Windows.Forms.Tools.FloatingForm.WndProc(Message& msg)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
Is there a solution or work around for this? Is this even the proper way of making a floating form visible again after closing it?
I am using Syncfusion v7.3.0.20.
I have been using sample code provided by Syncfusion from an old forum post:
http://websamples.syncfusion.com/samples/Tools.Windows/F70639/main.htm
When the control is hidden by clicking the Close button in the upper right corner of the floating form and then I try to make the form visible again using SetDockVisibility(), the following exception is thrown:
System.NullReferenceException: Object reference not set to an instance of an object.
at Syncfusion.Windows.Forms.Tools.FloatingForm.UpdateFormBorderStyle()
at Syncfusion.Windows.Forms.Tools.FloatingForm.OnVisibleChanged(EventArgs e)
at System.Windows.Forms.Control.WmShowWindow(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ContainerControl.WndProc(Message& m)
at System.Windows.Forms.Form.WmShowWindow(Message& m)
at System.Windows.Forms.Form.WndProc(Message& m)
at Syncfusion.Windows.Forms.Tools.FloatingForm.WndProc(Message& msg)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
Is there a solution or work around for this? Is this even the proper way of making a floating form visible again after closing it?
I am using Syncfusion v7.3.0.20.
I have been using sample code provided by Syncfusion from an old forum post:
http://websamples.syncfusion.com/samples/Tools.Windows/F70639/main.htm
SIGN IN To post a reply.
4 Replies
MM
Mike Mann
October 23, 2009 02:49 PM UTC
Sorry, I forgot to include steps to reproduce in my first post.
1.) Start the sample
2.) Click the "Visiblity=true" button to make the panel visible.
3.) Drag the panel out of the form to make it float.
4.) Close the floating form by clicking the "X" in the upper right corner.
5.) Click the "Visiblity=true" button again to make the floating form visible again.
At this point the application should throw the exception and crash.
1.) Start the sample
2.) Click the "Visiblity=true" button to make the panel visible.
3.) Drag the panel out of the form to make it float.
4.) Close the floating form by clicking the "X" in the upper right corner.
5.) Click the "Visiblity=true" button again to make the floating form visible again.
At this point the application should throw the exception and crash.
MJ
Mano J
Syncfusion Team
October 27, 2009 09:42 AM UTC
Hi Mike,
It is a known issue in 7.3.0.20. We have fixed this issue and this fix will be available in volume 4 release, scheduled to be released on first week of November.
Regards,
Mano
It is a known issue in 7.3.0.20. We have fixed this issue and this fix will be available in volume 4 release, scheduled to be released on first week of November.
Regards,
Mano
MM
Mike Mann
October 27, 2009 02:02 PM UTC
Would it be possible for you to provide us with a patch for this issue prior to the release of the next build?
NR
Nandakumar R
Syncfusion Team
November 3, 2009 10:07 AM UTC
Hi,
Can you please create a DirectTrac incident under your account in DirectTrac and we will post a patch in the incident?
Thanks for your interest in Syncfusion Essential Studio.
Regards,
Nanda
Can you please create a DirectTrac incident under your account in DirectTrac and we will post a patch in the incident?
Thanks for your interest in Syncfusion Essential Studio.
Regards,
Nanda
SIGN IN To post a reply.
- 4 Replies
- 3 Participants
-
MM Mike Mann
- Oct 23, 2009 02:46 PM UTC
- Nov 3, 2009 10:07 AM UTC