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.
Unfortunately, activation email could not send to your email. Please try again.

GetBarControl returning null

Thread ID:





47410 Aug 3,2006 10:41 PM Aug 8,2006 11:21 PM General Discussion 4
Tags: General Discussion
Arthur Goh
Asked On August 3, 2006 10:41 PM

I have upgraded from v3 to v4 and found the following statement now return null.

CommandBar cmdBar = this.mainFrameBarManager.GetBarControl(toolbar);

Any ideas?

Mano J [Syncfusion]
Replied On August 4, 2006 12:24 PM

Hi Arthur,

I have tested this issue in v. For some reason, I was not able to see the problem with GetBarControl method. Please refer to my test sample and let me know if you are able to reproduce it from your side.

It would be great, if you could provide a sample that shows this issue. Thanks for using Syncfusion products.



Arthur Goh
Replied On August 7, 2006 10:02 PM

Hi Mano

I have rewritten the example to show my problem.

Please note it used to work in v3.


Arthur Goh


Saradha [Syncfusion]
Replied On August 8, 2006 10:45 AM

Hi Arthur,

Thanks for your sample. When MainForm is a MDI Container, MergedBars are used instead of original Bars.This is because of Bars from different MdiChild forms can be merged to a single Bar.
Therefore, you should get hold of the Bar''s MergedEquivalent to access it. Refer the attached sample.


Please let me know if you have any questions.Thanks for using Syncfusion products.

K.Saradha Devi.

Arthur Goh
Replied On August 8, 2006 11:21 PM

Thanks a lot. That seems to have done the trick. Will continue to port to v4.

Arthur Goh


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.

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.