Questions tagged [trackbar]

a graphical widget in Winforms, also called a slider in other environments.

A track bar is a graphical widget in in which the user sets a value by moving a cursor on a line. Other environments such as jQuery call this control .

Resources

205 questions
1
vote
1 answer

How do I get the trackbar value?

I feel a little silly asking this, seems pretty simple but I can't find the solution anywhere. I have a trackbar made in visual studio 2008 and I want to use it to adjust an image threshold but I can't find the code to retrieve the sliders/markers…
Ruth
  • 31
  • 3
1
vote
1 answer

OpenCV - Variable value range of trackbar

I have a set of images and want to make a cross matching between all and display the results using trackbars using OpenCV 2.4.6 (ROS Hydro package). The matching part is done using a vector of vectors of vectors of cv::DMatch-objects: image[0] ---…
rbaleksandar
  • 8,713
  • 7
  • 76
  • 161
1
vote
1 answer

OpenCV - Trackbar slider keeps going to zero with video

I'm trying to use the slider to control my lower and upper bounds for HSV masking. I'm able to get the slider but can't get it to hold the position I set; it keeps going back to zero each time a new frame is pulled in. import numpy as np import…
ss32
  • 67
  • 2
  • 7
1
vote
1 answer

How to prevent a trackbar from moving, in only one direction?

I'm currently working on a quite simple Windows Form program and I currently have a small issue regarding trackbars. It's kind of a stats distributor for characters so I have 6 trackbars which should allow the user to distribute a set amount of…
Kunaki
  • 11
  • 2
1
vote
0 answers

Media player with custom controls: track bar slider lags

I'm working on a media player with custom controls and it actually works perfectly. However the track bar slider which shows the current position in the video doesn't move constantly in a nice move, but, how should I say, lags every second, or so.…
CCCP
  • 215
  • 3
  • 14
1
vote
1 answer

How to ensure that adjusting a TrackBar control with a mouse will set values multiple of SmallChange and not any in between?

I used .Net trackbar control. My trackbar point is 0...5...10..15. Problem is, when user scrolled trackbar they easily drop scroll in between points. But i wan't to that user only drop the scroll in my display point only. like they set only 0,5,10…
Jeet Bhatt
  • 744
  • 1
  • 7
  • 22
1
vote
4 answers

Changing opacity in form with trackbar in C# don't works, why?

I have (for fun) make a form in C#, with a trackbar. I want to change the Opacity of the form with it, so I wrote this: private void trackBar1_Scroll(object sender, EventArgs e) { progressBar1.Value = trackBar1.Value; …
1
vote
2 answers

TrackBar custom Small & Large Change on Mouse Move / Scroll Up & Down in VB.NET

Well I'm trying something like that: Private Sub TrackBar1_Scroll(sender As Object, e As EventArgs) Handles TrackBar1.Scroll Dim scv As Int32 = TrackBar1.Value Dim uni As [String] = "ms" Select Case scv Case Is > 1000 …
Seazoux
  • 621
  • 1
  • 5
  • 28
1
vote
1 answer

.NET TrackBar MouseDown follow cursor?

I currently use this code to fix the bug where if you click somewhere on the Horizontal TrackBar it jumps to the middle then to the end of the TrackBar. So this code fixes that bug, which now jumps to the location you click. But still a problem…
SSpoke
  • 5,656
  • 10
  • 72
  • 124
1
vote
0 answers

Adding Two TrackBar to UserControl

I am working TrackBars, I have to add two TrackBars in a single UserControl in parallel, so I can use them one as for "Low Value" and second as for "High Value". I have asked the similar question,below is the link: How to make a SlideBar(TrackBar)…
Bibi Tahira
  • 1,082
  • 5
  • 15
  • 39
1
vote
0 answers

Custom TrackBar with labels for every tick

I need to make a custom trackbar which needs to look like this one from VMWare: Image1, This is the best I can get: Image2 How am I supposed to do this? I have tried to put labels next to it, but that doesn't seem to work (I can't get them aligned…
1
vote
0 answers

Passing methods to a trackbar

This is an assignment. Im creating a very simple image processing program in C# which allows a user to perform certain actions to a greyscale image. The problem I am currently having is I need to have more than one method passed to a trackbar.…
1
vote
1 answer

How can I control system sound volume with a TrackBar?

I'm a beginner and making an internet radio player and I want to control the volume with my own TrackBar. How is that possible? I haven't found any solutions to do this.
Burucsb
  • 35
  • 1
  • 7
1
vote
1 answer

Is there any control or in way to use DateTime slider in windows form

I have a winForm, in which have a requirement to use Silder that could slide on DateTime and grid is refreshed according to the date selected. Is there any control that provides above functionality. Thanks in advance.
DS2020
  • 279
  • 1
  • 4
  • 20
1
vote
2 answers

C# winform, how to make the track bar move (increase its value) along with a sound file?

in my form, I have a small media player, it's pretty basic, it has the basic functionalists nest, previous, play, stop, volume increasing and a track bar. I was able to seek the song by dragging the track bar via this code:: (Assuming that the…
vexe
  • 5,433
  • 12
  • 52
  • 81