We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

SetDockVisibility throws nullReferenceException when called on auto-hidden control

Thread ID:





70639 Dec 20,2007 09:31 PM UTC Jan 4,2008 06:39 PM UTC WinForms 2
Tags: Tools
Anthony Nahas
Asked On December 20, 2007 09:31 PM UTC

If auto hide is set for a control, then it is hidden as:
dockingManager.SetDockVisibility(control, false);
and unhidden as:
dockingManager.SetDockVisibility(control, true);

a null reference exception is thrown. What are the workarounds for this?

SubhaSheela R [Syncfusion]
Replied On December 27, 2007 06:24 AM UTC

Hi Anthony,

Thank you for using Syncfusion products.
I have created a simple sample that shows how to test the "nullReferenceException" issue.
Please refer to the below link.

Kindly have a look at the above sample and if still the exception exists, could you please try reproducing it in the above sample or send us reproducing steps so that we could sort out the cause of the issue and provide you a solution? Also, Could you please specify your version, so that we will provide you the exact solution?

Subhasheela R

Anthony Nahas
Replied On January 4, 2008 06:39 PM UTC

Here is the version information:

Runtime Version v2.0.50727

Would you be able to tell me if there was a problem of the type I have described in that version?

I realize it may be fixed in the newer versions but are there any work-arounds if this really is a bug?


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon