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

后端 未结 7 1305
鱼传尺愫
鱼传尺愫 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 11:05

    Try this with the trackbar_valuechanged event handler:

    trackbar_valuechanged(s,e) {
        if(trackbar.value == 10){
            //Do whatever you want
        } else{
            //Do nothing or something else
        }
    }
    

提交回复
热议问题