Adding Geodatabase Feature to Group Layer using VB (ArcGIS 9.3)

340
0
03-08-2013 12:54 PM
BradGagliano
New Contributor II
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
Tags (2)
0 Kudos
0 Replies