Track Bar Only fire event on final value not ever time value changes

后端 未结 7 1326
鱼传尺愫
鱼传尺愫 2021-01-05 10:18

I am working on a pretty basic C# visual studio forms application but am having some issue getting the track bar to act as I want it to so hoping someone in the community mi

7条回答
  •  无人及你
    2021-01-05 10:50

    I had a similar problem, only with a range TrackBar Control. Same idea applies to this also, only it's easier for this case.

    I handled the MouseUp Event on the TrackBar to launch the procedures I needed, only after you would let go of the mouse button. This works if you drag the bar to your desired position or just click it.

    private void rangeTrackBarControl1_MouseUp(object sender, System.Windows.Forms.MouseEventArgs e) { YourProcedureHere(); }

提交回复
热议问题