List layers in a ComboBox Dropdown

List layers in a ComboBox Dropdown

Anonymous
Not applicable
2,732 Views
4 Replies
Message 1 of 5

List layers in a ComboBox Dropdown

Anonymous
Not applicable

Hello Everyone,

 

Does anyone have any examples on how to list all the layers of a current drawing and populate a ComboBox on a form with that list. It seems pretty simple, i'm just gonig through the .NET Developer guide now but was hoping there was a quicker solution.

 

Cheers

Vince

0 Likes
Accepted solutions (1)
2,733 Views
4 Replies
Replies (4)
Message 2 of 5

Keith.Brown
Advisor
Advisor

Here is a post over at the swamp that will list all layers and then populate a ListBox.  It should be easy enough to convert to a comboBox.

 

http://www.theswamp.org/index.php?topic=42777.msg479767#msg479767

0 Likes
Message 3 of 5

Hallex
Advisor
Advisor

Hi, Vince,

I already have a project to create form on the fly,

I just need to varnish it before posting,

wait till tomrrow,

 

Oleg

 

_____________________________________
C6309D9E0751D165D0934D0621DFF27919
0 Likes
Message 4 of 5

Hallex
Advisor
Advisor
Accepted solution

Vince, try this out as is

_____________________________________
C6309D9E0751D165D0934D0621DFF27919
Message 5 of 5

Anonymous
Not applicable

Thanks again Hallex, a perfect example of what I was looking for as always.

0 Likes