I want to load my explorer bar groups and items in code and not within the form itself; I want to pass the control down to a presentation layer logic class that will take care of getting the groups from the database, loading them into the control, and then pass the control back to the form.
Any ideas?
I'm not sure if I understood this post but objects in C# are automatically passed by reference, and you can use VB's 'ByRef' keyword to pass a reference in that language:
private void PopulateExplorerBar( UltraExplorerBar explorerBar ){}
private Sub PopulateExplorerBar( ByRef explorerBar As UltraExplorerBar )End Sub
Thanks for the input. It was sort of the end of the day and I was just having a brain fade; I was not including the reference to the actual control (I was leaving off the last node). This worked just fine (the underlined node is what I was forgetting):
Public Sub LoadSystemAreaExplorerBar(ByRef MyExplorerBar As Infragistics.Win.UltraWinExplorerBar.UltraExplorerBar)