# Is there a way to make a number slider in rhino?

**URL:** <https://discourse.mcneel.com/t/is-there-a-way-to-make-a-number-slider-in-rhino/200736>\
**Category:** Rhino Developer\
**Tags:** windows\
**Created:** [March 4, 2025, 7:17pm UTC](https://discourse.mcneel.com/t/is-there-a-way-to-make-a-number-slider-in-rhino/200736 "2025-03-04T19:17:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nick\_Drian](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/nick_drian/32/758141_2.png) [@Nick\_Drian](https://discourse.mcneel.com/u/Nick_Drian)\
**Post date:** [March 4, 2025, 7:17pm UTC](https://discourse.mcneel.com/t/is-there-a-way-to-make-a-number-slider-in-rhino/200736/1 "2025-03-04T19:17:24Z")

</div>

I’m building UI and I would like to have a number slider. Has anyone built one of these? if so how? Also so you agree that number sliders would be a good thing to add to RhinoCommon UI?

---

<div class="post-metadata">

**Author:** ![CallumSykes](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/callumsykes/32/569341_2.png) [@CallumSykes](https://discourse.mcneel.com/u/CallumSykes)\
**Post date:** [March 4, 2025, 9:02pm UTC](https://discourse.mcneel.com/t/is-there-a-way-to-make-a-number-slider-in-rhino/200736/2 "2025-03-04T21:02:36Z")

</div>

There is the Number Stepper and the Slider in Eto, what would you change about these to get your desired control? 🙂

```cs
using Eto.Drawing;
using Eto.Forms;

var stepperLabel = new Label() { Text = "0" };
var sliderLabel = new Label() { Text = "0" };

var stepper = new NumericStepper();
var slider = new Slider() { Value = 0, MinValue = -100, MaxValue = 100};

stepper.ValueChanged += (s,e) => stepperLabel.Text = stepper.Value.ToString();
slider.ValueChanged += (s,e) => sliderLabel.Text = slider.Value.ToString();

var layout = new DynamicLayout() { Spacing = new Size(4, 8), Padding = 8 };
layout.BeginVertical();
layout.Add(stepper);
layout.Add(stepperLabel);
layout.AddSpace(true, true);
layout.Add(slider);
layout.Add(sliderLabel);
layout.EndVertical();

var dialog = new Dialog()
{
    Width = 300,
    Height = 140,
    Content = layout
};

dialog.ShowModal();

```

 ![image](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/8/6/a/86a2314085711a6e5b14820ddb55defb78d4bf9f.jpeg)
