# Use set\_ShapeFillColor new version

**URL:** <https://mapwindow.discourse.group/t/use-set-shapefillcolor-new-version/165>\
**Category:** MapWinGIS\
**Created:** [May 21, 2019, 6:40pm UTC](https://mapwindow.discourse.group/t/use-set-shapefillcolor-new-version/165 "2019-05-21T18:40:20Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![luffy\_7557](https://avatars.discourse-cdn.com/v4/letter/l/97f17d/32.png) [@luffy\_7557](https://mapwindow.discourse.group/u/luffy_7557)\
**Post date:** [May 22, 2019, 7:39pm UTC](https://mapwindow.discourse.group/t/use-set-shapefillcolor-new-version/165/4 "2019-05-22T19:39:54Z")

</div>

i try it but paint all the polygons, i want to control which polygons to paint for example the 10,07,20 of the CVE\_ENT index with a query, is it possible?  
regards and thank you

```
    AxMap1.Projection = tkMapProjection.PROJECTION_NONE
    AxMap1.GrabProjectionFromData = True

    Dim fieldIndex As New Integer
    fieldIndex = sfWorld.Table.FieldIndexByName("CVE_ENT")
    sfWorld.Categories.Generate(fieldIndex, tkClassificationType.ctUniqueValues, 0)

    Dim scheme = New Mapwingis.ColorScheme()
    scheme.SetColors2(tkMapColor.Blue, tkMapColor.Yellow)
    sfWorld.Categories.ApplyColorScheme(tkColorSchemeType.ctSchemeRandom, scheme)

```

 ![map1](https://global.discourse-cdn.com/free1/uploads/mapwindow1/original/1X/77ee33a6776643a8b81d881e950760ab3f0df4d2.png)  
 ![table](https://global.discourse-cdn.com/free1/uploads/mapwindow1/original/1X/347c741cc3b68bce5e3fedbf36893b12b9da1000.png)

I want something like that, can you help me with an example or code please

 ![map3](https://global.discourse-cdn.com/free1/uploads/mapwindow1/original/1X/d6ee098ebf2fb85bd5371f157fe8b7ffdc8493c7.png)

---

_[View the full topic](https://mapwindow.discourse.group/t/use-set-shapefillcolor-new-version/165)._
