Needing Help with ArcObjects Program, Programming Several Checkboxes to one Combobox

3352
2
09-10-2014 01:51 PM
MichelleCouden1
Occasional Contributor III

I have attached a picture of my GUI. So when you look at the GUI you'll notice the combobox with Abilene in it, then look to the right and you will see several checkboxes. This is how I need it to work. They select a District i.e. Abilene, then they can check as many boxes as they want for the stations they want in their map. For Example, Abilene is the district and then they want ATR, AVC, BC, and LTPP stations. I have code written below please let me know if this is the right path or is there a shorter way to program this GUI.

 

Private Sub CmdMap_Click ()

     If cboDistrict.Text = "Abilene" Then

          If ChkAtr.Text = True Then

               pGxFile1.Path = "K:/permanentstations/Atr.lyr

          ElseIf ChkAvc.Text = True Then

               pGxFile1.Path = "K:/permanentstations/Avc.lyr

[\\CODE]

0 Kudos
2 Replies
KenBuja
MVP Esteemed Contributor

Could you provide a slightly longer code fragment, showing a few cities and their possible paths?

Also, you should move this discussion to the ArcObjects space to get more focused attention on this question.

0 Kudos
MichelleCouden1
Occasional Contributor III

Ken, I moved it to ArcObjects space. Let me know if I made any mistakes. Also, I added all the code that I have at this time.

0 Kudos