TabbedMDIManager: Exception after press ctrl+tab where no mdi child window exist
Hello,
I have problem with TabbedMDIManager.
When no mdi child window exists when user press ctrl+tab exception is thrown:
************** Exception Text **************
System.NullReferenceException: Object reference not set to an instance of an object.
at Syncfusion.Windows.Forms.Tools.TabbedMDIManager.ProcessCmdKey(Keys keyData, Boolean isSysKeyDown)
at Syncfusion.Windows.Forms.Tools.TabbedMDIManager.PreFilterMessage(Message& m)
***
When one or more child window exist everything work ok.
These same problem exists in Syncfusion tutorial examples (after deletion of any mdi child)
Syncfusion: Assembly Version: 4.402.0.51
Thank you for any help,
Regards
I have problem with TabbedMDIManager.
When no mdi child window exists when user press ctrl+tab exception is thrown:
************** Exception Text **************
System.NullReferenceException: Object reference not set to an instance of an object.
at Syncfusion.Windows.Forms.Tools.TabbedMDIManager.ProcessCmdKey(Keys keyData, Boolean isSysKeyDown)
at Syncfusion.Windows.Forms.Tools.TabbedMDIManager.PreFilterMessage(Message& m)
***
When one or more child window exist everything work ok.
These same problem exists in Syncfusion tutorial examples (after deletion of any mdi child)
Syncfusion: Assembly Version: 4.402.0.51
Thank you for any help,
Regards
SIGN IN To post a reply.
6 Replies
GR
Golda Rebecal
Syncfusion Team
February 20, 2007 01:55 PM UTC
Hi Michal,
I am able to see the exception being thrown on pressing Ctrl-tab when there are no tabs.
We can resolve this issue by handling the Application.ThreadException.
Application.ThreadException += new System.Threading.ThreadExceptionEventHandler(Application_ThreadException);
static void Application_ThreadException(object sender, System.Threading.ThreadExceptionEventArgs e)
{
}
Please have a look at the attached sample and let me know if you need any further assistance.
Thanks for using Syncfusion products.
Best Regards,
Golda
cs50.zip
I am able to see the exception being thrown on pressing Ctrl-tab when there are no tabs.
We can resolve this issue by handling the Application.ThreadException.
Application.ThreadException += new System.Threading.ThreadExceptionEventHandler(Application_ThreadException);
static void Application_ThreadException(object sender, System.Threading.ThreadExceptionEventArgs e)
{
}
Please have a look at the attached sample and let me know if you need any further assistance.
Thanks for using Syncfusion products.
Best Regards,
Golda
cs50.zip
MI
Michal Iwicki
February 21, 2007 08:10 AM UTC
Thank you for answer.
It works :-),
but I wonder if it is possible that this exception will be catched by Syncfusion TabbedMDIManager object in next release.
Regards
It works :-),
but I wonder if it is possible that this exception will be catched by Syncfusion TabbedMDIManager object in next release.
Regards
GR
Golda Rebecal
Syncfusion Team
February 21, 2007 12:13 PM UTC
Hi Michal,
Thanks for the update.
I have logged a bug report regarding this issue so that it would be fixed in the future release.
We appreciate your interest in Syncfusion products.
Best Regards,
Golda
Thanks for the update.
I have logged a bug report regarding this issue so that it would be fixed in the future release.
We appreciate your interest in Syncfusion products.
Best Regards,
Golda
JS
James Sandys-Lumsdaine
April 11, 2007 12:27 PM UTC
I've found you can workaround this by overriding the ProcessCmdKey() method as below. Any thoughts from the Syncfusion people?
public override bool ProcessCmdKey(Keys keyData, bool isSysKeyDown)
{
if (keyData == (Keys.Control | Keys.Tab) ||
keyData == (Keys.Control | Keys.Tab | Keys.Shift))
{
if (MdiParent.MdiChildren.Length == 0)
return true;
}
return base.ProcessCmdKey(keyData, isSysKeyDown);
}
public override bool ProcessCmdKey(Keys keyData, bool isSysKeyDown)
{
if (keyData == (Keys.Control | Keys.Tab) ||
keyData == (Keys.Control | Keys.Tab | Keys.Shift))
{
if (MdiParent.MdiChildren.Length == 0)
return true;
}
return base.ProcessCmdKey(keyData, isSysKeyDown);
}
GR
Golda Rebecal
Syncfusion Team
April 11, 2007 01:33 PM UTC
Hi jas_sl,
The issue of NullReference exception being thrown on pressing Ctrl-tab when there are no MDI tabs has been fixed in Essential Studio V5.
Could you please refer the following forum thread to obtain the beta version of Essential Studio v5?
http://www.syncfusion.com/support/forums/message.aspx?&MessageID=57573
Kindly let me know if you have any other questions.
Best Regards,
Golda
The issue of NullReference exception being thrown on pressing Ctrl-tab when there are no MDI tabs has been fixed in Essential Studio V5.
Could you please refer the following forum thread to obtain the beta version of Essential Studio v5?
http://www.syncfusion.com/support/forums/message.aspx?&MessageID=57573
Kindly let me know if you have any other questions.
Best Regards,
Golda
JS
James Sandys-Lumsdaine
April 11, 2007 02:22 PM UTC
Thanks for the info - I'm not sure we're able to upgrade to v5 just yet but I'll bear that in mind.
Thanks.
Thanks.
SIGN IN To post a reply.
- 6 Replies
- 3 Participants
-
MI Michal Iwicki
- Feb 20, 2007 11:39 AM UTC
- Apr 11, 2007 02:22 PM UTC