# FarPoint.Win.FpSlider

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="FarPoint_Win_FpSlider" data-uid="FarPoint.Win.FpSlider" class="text-break">FpSlider Class
</h1>
  <div class="markdown level0 summary"><p>Represents the FarPoint slider (track bar) control.</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <div class="inheritance">
    <h5>Inheritance</h5>
    <div class="level0"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></div>
    <div class="level1"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.marshalbyrefobject">MarshalByRefObject</a></div>
    <div class="level2"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.componentmodel.component">Component</a></div>
    <div class="level3"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.forms.control">Control</a></div>
    <div class="level4"><span class="xref">FpSlider</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.forms.idroptarget">IDropTarget</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.componentmodel.isynchronizeinvoke">ISynchronizeInvoke</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.forms.iwin32window">IWin32Window</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.forms.ibindablecomponent">IBindableComponent</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.componentmodel.icomponent">IComponent</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.idisposable">IDisposable</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="FarPoint.Win.html">FarPoint.Win</a></h6>
  <h6><strong>Assembly</strong>: FarPoint.Win.dll</h6>
  <h5 id="FarPoint_Win_FpSlider_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class FpSlider : Control, IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class FpSlider
    Inherits Control
    Implements IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable</code></pre>
  </div>
  <h3 id="constructors">Constructors
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="FarPoint_Win_FpSlider__ctor" data-uid="FarPoint.Win.FpSlider.#ctor">
          <a class="xref" href="FarPoint.Win.FpSlider.-ctor.html#FarPoint_Win_FpSlider__ctor">FpSlider()</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a new FarPoint slider (track bar) control.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="properties">Properties
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="FarPoint_Win_FpSlider_BackgroundImage" data-uid="FarPoint.Win.FpSlider.BackgroundImage">
          <a class="xref" href="FarPoint.Win.FpSlider.BackgroundImage.html#FarPoint_Win_FpSlider_BackgroundImage">BackgroundImage</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the background image for the slider.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_FpSlider_ChangeOnFocus" data-uid="FarPoint.Win.FpSlider.ChangeOnFocus">
          <a class="xref" href="FarPoint.Win.FpSlider.ChangeOnFocus.html#FarPoint_Win_FpSlider_ChangeOnFocus">ChangeOnFocus</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets whether the slider knob moves when intially clicking on the track.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_FpSlider_KnobColor" data-uid="FarPoint.Win.FpSlider.KnobColor">
          <a class="xref" href="FarPoint.Win.FpSlider.KnobColor.html#FarPoint_Win_FpSlider_KnobColor">KnobColor</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the color of the knob of the slider.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_FpSlider_KnobPicture" data-uid="FarPoint.Win.FpSlider.KnobPicture">
          <a class="xref" href="FarPoint.Win.FpSlider.KnobPicture.html#FarPoint_Win_FpSlider_KnobPicture">KnobPicture</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the picture that displays on the knob of the slider.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_FpSlider_KnobWidth" data-uid="FarPoint.Win.FpSlider.KnobWidth">
          <a class="xref" href="FarPoint.Win.FpSlider.KnobWidth.html#FarPoint_Win_FpSlider_KnobWidth">KnobWidth</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the width of the knob of the slider.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_FpSlider_Maximum" data-uid="FarPoint.Win.FpSlider.Maximum">
          <a class="xref" href="FarPoint.Win.FpSlider.Maximum.html#FarPoint_Win_FpSlider_Maximum">Maximum</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the maximum value for the slider.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_FpSlider_Minimum" data-uid="FarPoint.Win.FpSlider.Minimum">
          <a class="xref" href="FarPoint.Win.FpSlider.Minimum.html#FarPoint_Win_FpSlider_Minimum">Minimum</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the minimum value for the slider.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_FpSlider_Orientation" data-uid="FarPoint.Win.FpSlider.Orientation">
          <a class="xref" href="FarPoint.Win.FpSlider.Orientation.html#FarPoint_Win_FpSlider_Orientation">Orientation</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the orientation of the slider.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_FpSlider_Text" data-uid="FarPoint.Win.FpSlider.Text">
          <a class="xref" href="FarPoint.Win.FpSlider.Text.html#FarPoint_Win_FpSlider_Text">Text</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the value as a string</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_FpSlider_TickColor" data-uid="FarPoint.Win.FpSlider.TickColor">
          <a class="xref" href="FarPoint.Win.FpSlider.TickColor.html#FarPoint_Win_FpSlider_TickColor">TickColor</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the color of the tick marks in the slider.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_FpSlider_TickLength" data-uid="FarPoint.Win.FpSlider.TickLength">
          <a class="xref" href="FarPoint.Win.FpSlider.TickLength.html#FarPoint_Win_FpSlider_TickLength">TickLength</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the width of the ticks of the slider.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_FpSlider_TickSpacing" data-uid="FarPoint.Win.FpSlider.TickSpacing">
          <a class="xref" href="FarPoint.Win.FpSlider.TickSpacing.html#FarPoint_Win_FpSlider_TickSpacing">TickSpacing</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets how frequently to space the tick marks in the slider.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_FpSlider_TrackColor" data-uid="FarPoint.Win.FpSlider.TrackColor">
          <a class="xref" href="FarPoint.Win.FpSlider.TrackColor.html#FarPoint_Win_FpSlider_TrackColor">TrackColor</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the color of the track in the slider.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_FpSlider_TrackPicture" data-uid="FarPoint.Win.FpSlider.TrackPicture">
          <a class="xref" href="FarPoint.Win.FpSlider.TrackPicture.html#FarPoint_Win_FpSlider_TrackPicture">TrackPicture</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the picture displayed inside the track area of the slider.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_FpSlider_TrackWidth" data-uid="FarPoint.Win.FpSlider.TrackWidth">
          <a class="xref" href="FarPoint.Win.FpSlider.TrackWidth.html#FarPoint_Win_FpSlider_TrackWidth">TrackWidth</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the width of the track of the slider.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_FpSlider_Value" data-uid="FarPoint.Win.FpSlider.Value">
          <a class="xref" href="FarPoint.Win.FpSlider.Value.html#FarPoint_Win_FpSlider_Value">Value</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the value in the slider.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_FpSlider_VisualStyles" data-uid="FarPoint.Win.FpSlider.VisualStyles">
          <a class="xref" href="FarPoint.Win.FpSlider.VisualStyles.html#FarPoint_Win_FpSlider_VisualStyles">VisualStyles</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets whether to use visual styles.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="methods">Methods
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="FarPoint_Win_FpSlider_Dispose_System_Boolean_" data-uid="FarPoint.Win.FpSlider.Dispose(System.Boolean)">
          <a class="xref" href="FarPoint.Win.FpSlider.Dispose.html#FarPoint_Win_FpSlider_Dispose_System_Boolean_">Dispose(bool)</a>
        </td>
        <td class="markdown level1 summary"><p>Clean up any resources being used.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_FpSlider_DoPaint_System_Drawing_Graphics_System_Drawing_Rectangle_System_Drawing_Color_System_Drawing_Color_System_Int32_System_Boolean_System_Drawing_Color_FarPoint_Win_SliderOrientation_System_Int32_System_Int32_System_Int32_FarPoint_Win_Picture_System_Int32_System_Int32_FarPoint_Win_Picture_System_Drawing_Color_FarPoint_Win_Picture_System_Boolean_System_Boolean_System_Boolean_FarPoint_Win_VisualStyles_System_Drawing_Color_System_Boolean_System_Int32_" data-uid="FarPoint.Win.FpSlider.DoPaint(System.Drawing.Graphics,System.Drawing.Rectangle,System.Drawing.Color,System.Drawing.Color,System.Int32,System.Boolean,System.Drawing.Color,FarPoint.Win.SliderOrientation,System.Int32,System.Int32,System.Int32,FarPoint.Win.Picture,System.Int32,System.Int32,FarPoint.Win.Picture,System.Drawing.Color,FarPoint.Win.Picture,System.Boolean,System.Boolean,System.Boolean,FarPoint.Win.VisualStyles,System.Drawing.Color,System.Boolean,System.Int32)">
          <a class="xref" href="FarPoint.Win.FpSlider.DoPaint.html#FarPoint_Win_FpSlider_DoPaint_System_Drawing_Graphics_System_Drawing_Rectangle_System_Drawing_Color_System_Drawing_Color_System_Int32_System_Boolean_System_Drawing_Color_FarPoint_Win_SliderOrientation_System_Int32_System_Int32_System_Int32_FarPoint_Win_Picture_System_Int32_System_Int32_FarPoint_Win_Picture_System_Drawing_Color_FarPoint_Win_Picture_System_Boolean_System_Boolean_System_Boolean_FarPoint_Win_VisualStyles_System_Drawing_Color_System_Boolean_System_Int32_">DoPaint(Graphics, Rectangle, Color, Color, int, bool, Color, SliderOrientation, int, int, int, Picture, int, int, Picture, Color, Picture, bool, bool, bool, VisualStyles, Color, bool, int)</a>
        </td>
        <td class="markdown level1 summary"><p>Paints the slider control.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_FpSlider_GetPreferredSize_FarPoint_Win_SliderOrientation_System_Int32_System_Int32_System_Int32_" data-uid="FarPoint.Win.FpSlider.GetPreferredSize(FarPoint.Win.SliderOrientation,System.Int32,System.Int32,System.Int32)">
          <a class="xref" href="FarPoint.Win.FpSlider.GetPreferredSize.html#FarPoint_Win_FpSlider_GetPreferredSize_FarPoint_Win_SliderOrientation_System_Int32_System_Int32_System_Int32_">GetPreferredSize(SliderOrientation, int, int, int)</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the size needed to display the entire slider with the specified orientation and values.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_FpSlider_IsPointInKnob_System_Int32_System_Int32_System_Drawing_Rectangle_System_Int32_FarPoint_Win_SliderOrientation_System_Int32_System_Int32_System_Int32_System_Int32_System_Int32_" data-uid="FarPoint.Win.FpSlider.IsPointInKnob(System.Int32,System.Int32,System.Drawing.Rectangle,System.Int32,FarPoint.Win.SliderOrientation,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32)">
          <a class="xref" href="FarPoint.Win.FpSlider.IsPointInKnob.html#FarPoint_Win_FpSlider_IsPointInKnob_System_Int32_System_Int32_System_Drawing_Rectangle_System_Int32_FarPoint_Win_SliderOrientation_System_Int32_System_Int32_System_Int32_System_Int32_System_Int32_">IsPointInKnob(int, int, Rectangle, int, SliderOrientation, int, int, int, int, int)</a>
        </td>
        <td class="markdown level1 summary"><p>Determines whether the point is in the knob of the slider.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_FpSlider_OnAfterFocus_System_EventArgs_" data-uid="FarPoint.Win.FpSlider.OnAfterFocus(System.EventArgs)">
          <a class="xref" href="FarPoint.Win.FpSlider.OnAfterFocus.html#FarPoint_Win_FpSlider_OnAfterFocus_System_EventArgs_">OnAfterFocus(EventArgs)</a>
        </td>
        <td class="markdown level1 summary"><p>Raises the AfterFocus event.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_FpSlider_OnBackgroundImageChanged_System_Object_System_EventArgs_" data-uid="FarPoint.Win.FpSlider.OnBackgroundImageChanged(System.Object,System.EventArgs)">
          <a class="xref" href="FarPoint.Win.FpSlider.OnBackgroundImageChanged.html#FarPoint_Win_FpSlider_OnBackgroundImageChanged_System_Object_System_EventArgs_">OnBackgroundImageChanged(object, EventArgs)</a>
        </td>
        <td class="markdown level1 summary"><p>Occurs if the background picture changes.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_FpSlider_OnError_System_EventArgs_" data-uid="FarPoint.Win.FpSlider.OnError(System.EventArgs)">
          <a class="xref" href="FarPoint.Win.FpSlider.OnError.html#FarPoint_Win_FpSlider_OnError_System_EventArgs_">OnError(EventArgs)</a>
        </td>
        <td class="markdown level1 summary"><p>Raises the Error event.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_FpSlider_OnGotFocus_System_EventArgs_" data-uid="FarPoint.Win.FpSlider.OnGotFocus(System.EventArgs)">
          <a class="xref" href="FarPoint.Win.FpSlider.OnGotFocus.html#FarPoint_Win_FpSlider_OnGotFocus_System_EventArgs_">OnGotFocus(EventArgs)</a>
        </td>
        <td class="markdown level1 summary"><p>Raises the System.Windows.Forms.Control.GotFocus event.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_FpSlider_OnThemeChanged_System_Object_System_EventArgs_" data-uid="FarPoint.Win.FpSlider.OnThemeChanged(System.Object,System.EventArgs)">
          <a class="xref" href="FarPoint.Win.FpSlider.OnThemeChanged.html#FarPoint_Win_FpSlider_OnThemeChanged_System_Object_System_EventArgs_">OnThemeChanged(object, EventArgs)</a>
        </td>
        <td class="markdown level1 summary"><p>Handles the ThemeChanged event for the VisualStyleTheme</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_FpSlider_OnValueChanged_System_EventArgs_" data-uid="FarPoint.Win.FpSlider.OnValueChanged(System.EventArgs)">
          <a class="xref" href="FarPoint.Win.FpSlider.OnValueChanged.html#FarPoint_Win_FpSlider_OnValueChanged_System_EventArgs_">OnValueChanged(EventArgs)</a>
        </td>
        <td class="markdown level1 summary"><p>Raises the ValueChanged event.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="events">Events
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="FarPoint_Win_FpSlider_AfterFocus" data-uid="FarPoint.Win.FpSlider.AfterFocus">
          <a class="xref" href="FarPoint.Win.FpSlider.AfterFocus.html">AfterFocus</a>
        </td>
        <td class="markdown level1 summary"><p>Occurs after the control receives focus.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_FpSlider_Error" data-uid="FarPoint.Win.FpSlider.Error">
          <a class="xref" href="FarPoint.Win.FpSlider.Error.html">Error</a>
        </td>
        <td class="markdown level1 summary"><p>Occurs when an error occurs.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_FpSlider_ValueChanged" data-uid="FarPoint.Win.FpSlider.ValueChanged">
          <a class="xref" href="FarPoint.Win.FpSlider.ValueChanged.html">ValueChanged</a>
        </td>
        <td class="markdown level1 summary"><p>Occurs when the user moves the slider and changes the value.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
