I am trying to load data from a Geodatabase using UIButton Control, which I have set up. I am having trouble because it places the layers at the top of the table of contents and not in the empty group layer I need it to. I am able to do this with layer files using the lines below:
Dim pMxDoc As IMxDocument
Set pMxDoc = Application.Document
Dim pGroupLayer As IGroupLayer
Set pGroupLayer = GetLayerByName(pMxDoc, "D1 Layers")
How can I accomplish this for a Geodatabase?
Thanks,
Brad Gagliano