Hi,
we have a problem using ExcludedSharedControls functionality on UltraTabControl when using inheritance.
I was able to create sample project and will explain the problem using the sample.
There is BaseForm : System.Windows.Forms.Form. I have placed just UltraTabControl on it. As I want to use the design on other Form I have changed accessibility of controls in BaseForm.Designer.cs.
From:
private Infragistics.Win.UltraWinTabControl.UltraTabControl ultraTabControl;private Infragistics.Win.UltraWinTabControl.UltraTabSharedControlsPage ultraTabSharedControlsPage1;
To:
protected Infragistics.Win.UltraWinTabControl.UltraTabControl ultraTabControl;protected Infragistics.Win.UltraWinTabControl.UltraTabSharedControlsPage ultraTabSharedControlsPage1;
Now I have created another form MainForm : BaseForm. In design view of Visual Studio 2010 I have created two tabs. I have placed a control on Shared controls page.
Right click on tab2, select Exclude shared controls, select listed control, Apply, OK, Save. Tab1 shows control, tab2 does not.
So far so good.
Close the design view and reopen the file in design view. Tab1 shows control and tab2 also shows control. And this is not good. In MainForm.Design.cs there is still placed code:
ultraTab2.ExcludedSharedControls.AddRange(new System.Windows.Forms.Control[]{this.ultraTextEditor1});
In our project everytime we open such file in design view the code is even deleted.
Can you give us some advice how to overcome the problem? Or is it a bug?
Thank you
Hello ,
Thank you for the provided sample. I have tried to modify accessibility (Modifier property) of controls in BaseForm.Designer.cs to publick. Then I have built your sample and I was not able to reproduce this issue any more on my machine. Please try this suggestion and let me know if it works for you.
Thank you for using Infragistics components.
Thank you for your reply, but I do not have good news :(
I have played around with it for almost an hour with no success. I was using Infragistics comoponents in version 11.2.20112.2019.
It sets excluded controls just fine. But as soon as I close the designer view and open it back again it is gone. Shared controls are visible in both tabs.
Hello,
I am just checking about the progress of this issue. Let me know If you need my further assistance on this matter?
Thank you for using Infragistics Components.
After some time, I was able to check it again.
Infragistics upgraded to latest version 11.2.20112.2050, I have followed your video but no luck agian :(
Buuut. When I run the sample project everything is fine as it should be. Just designer is not working properly.
I am just checking about the progress of this issue. Let me know If you need my further assistance on this issue?