segmentedcontrol - add n remove segments at runtime ?

Is it possible to delete and add new segments to segmentedcontrol at runtime ?

Doesn’t look like it :frowning:

For web apps, you can change WebSegmentedControl.SegmentCount to add or remove segments to the end.

For desktop apps, it looks like you can add or remove segments to the Items array:

[code] // Create new segment
Dim si As New SegmentedControlItem
si.Title = “New Segment”

// Add to items

// Increase width so it is visible
SegmentedControl1.Width = SegmentedControl1.Width + 100[/code]