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

GetBarControl returning null

Thread ID:





47410 Aug 4,2006 02:41 AM UTC Aug 9,2006 03:21 AM UTC General Discussion 4
Tags: General Discussion
Arthur Goh
Asked On August 4, 2006 02:41 AM UTC

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 04:24 PM UTC

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 8, 2006 02:02 AM UTC

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 02:45 PM UTC

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 9, 2006 03:21 AM UTC

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.

Please sign in to access our forum

This page will automatically be redirected to the 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