RegardsI have an application in vb.net with the following structure:
A control group UltraWinExploreBar with each group (container type) is filled with a series of the same user control.So far so good. The UltraWinExploreBar behaves as expected and the user control as well. All event handlers are made user control at runtime and it works as it should.However, the user control has the ability to remove the section, ie remove the container (UltraExplorerBarContainerControl type) and of course the group.I'm trying to access the specific group that owns the control to try to get your Key or Indexand eliminate it, for this use the following code:Dim x As UltraWinExplorerBar.UltraExplorerBarGroup = DirectCast (Me.Parent.Parent,Infragistics.Win.UltraWinExplorerBar.UltraExplorerBarContainerControl). GroupBut it tells me the following error:Error 1 'ReadOnly Property GroupInfragistics.Win.UltraWinExplorerBar.UltraExplorerBarContainerControl.Friend AsInfragistics.Win.UltraWinExplorerBar.UltraExplorerBarGroup' is not accessible Because ItIn This context is 'Friend'.How I can gain control of group I want to eliminate?I hope I have explained ....Thanks
Hello,
From the error given it seems to me that the object you are trying to access does not have the right modifier. You could try for example making the desired object 'Public' and see if this would resolve the issue.
Please do not hesitate to contact us if you need any additional assistance.