webSegmentedControl, number of segments

I have a webContainerControl with a segmentedControl on it
This webContainerControl will be embedded

  dim numbComp As Integer = 5
  dim cc As new webContainerControl1
  cc.EmbedWithin(self,0,0,0,0)     // start with 0,0,0,0 / it will be changed in placeMe
  AddHandler cc.clicked, AddressOf showDetail
  cc.placeMe(Lstart,Tstart,W,H,numbComp)

The number of segments in segmentedControl1 will be changed in cc.placeMe

self.SegmentedControl1.SegmentCount=numbComp

This doesn’t work.
What is the correct way to do this?

Thanks
Roland

It’s a bug, and it’s been fixed for a future release.

oh!
Is there a workaround?

By the way, I found a way to deselect all the segments of a webSegmentedControl
if there are p.e. 4 segments then
webSegmentedControl.listIndex = 5
will deselect all segments
I hope this is not crazy!

Roland