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 to prevent controls( tabs ) from blinking and disappearing with windows common controls 6.0 when I move a trackbar?

When sliding the trackbar and release the mouse button, the whole window flashes and the tabs dissappear. When I use the old version, everything works properly! When I use the new Microsoft Windows Common Controls ver.6.0, this problem is observed…
Ted
  • 68
  • 7
1
vote
1 answer

OpenCV trackbar assertion failed error

I want to do foreground segmentation using opencv. I have written code that has trackbars so that I can find optimal parameters for the segmentation. When the code is executed it works, the images are shown with contours marked and etc. But when I…
user7243382
1
vote
1 answer

TrackBar Control acting as a Range Selector with Multiple Thumbs

I am after a control which works similarly to a TrackBar control but has three thumbs, one for selecting a value and two others for selecting the minimum and maximum values on the same control. I have searched Google for this and I have found a lot…
RHodgett
  • 221
  • 7
  • 15
1
vote
1 answer

Trackbar has obvious unfixed bug?

When I add a trackbar to a form and set Me.TrackBar1.Minimum = 0 Me.TrackBar1.Maximum = 100 Me.TrackBar1.LargeChange = 10 Me.TrackBar1.SmallChange = 10 Me.TrackBar1.TickFrequency = 10 ... the trackbar goes berzerk: I can choose…
tmighty
  • 10,734
  • 21
  • 104
  • 218
1
vote
0 answers

use track bar for scrolling vertically in C#

I can't figure out how to connect track bar and panel. So, that I can easily scroll vertically through a panel. I have tried doing this in my track bar scroll event. myPanel.VerticalScroll.Value += 10; But, It is not working Can you help me solve…
Kabeer
  • 46
  • 9
1
vote
0 answers

C++CLI bug, stacking trackbars (weird visual effect and crash)

I really need help with this but nobody is giving me any information. So I thought I'd just make a really long post detailing the issue and my code. Just as starting info this is a C++ DLL that loads the form upon loading into another program or…
Reece
  • 59
  • 7
1
vote
2 answers

Removing TextBox , Location issue C#

I want to create textboxes dynamically on trackbar_scroll. If trackbar has a value of 5, it may have 5 textboxes. When it decreases to 2, it must have 2 textboxes. Here is the problem when I decrease trackbar_scroll value: private void…
Allah Rakha
  • 65
  • 2
  • 11
1
vote
1 answer

How to convert .NET Trackbar control integer value to floating-point percentage

I always get 0 for percentage when I do this: int trackBarValue = trackBar.Value; float percentage = trackBarValue / 100; What's wrong with my code?
user310291
  • 36,946
  • 82
  • 271
  • 487
1
vote
2 answers

Textbox value into trackbar

I have a question. I have been doing VB Express 2015 in class for over three months now. If you place a trackbar and a textbox in a form, you can display the value of the trackbar in the textbox. Can you make it so that it goes the other way around?…
1
vote
3 answers

System.Windows.Forms.Trackbar - how to prevent user from dragging the slider?

Is there some way to (temporarily) prevent user from changing the value of TrackBar by dragging the slider? Only way I found is to set Enabled property to false but it also greys out the trackbar. Edit: Since I´m getting more answers about why…
Ondra C.
  • 2,492
  • 3
  • 33
  • 35
1
vote
1 answer

OpenCV 3.0.0: How to display trackbar at top of window in Ubuntu 14.04

I am following this tutorial to make a draggable trackbar, but the trackbar only appears on the bottom of the window, and I cannot find an option to change that behavior. In the tutorial, they clearly show the trackbar at the top of the…
Graeme Rock
  • 601
  • 5
  • 21
1
vote
1 answer

trackBar Brightness Control is not scrolling entire color range from Black to White

I have a trackbar control that is adjusting the brightness of the background color of a form. Eventually, I'll modify it to adjust an image's brightness. If you look at how the brightness slider works in the Microsoft colorDialog Control, as you…
MaoTseTongue
  • 71
  • 2
  • 8
1
vote
0 answers

Binding 2 trackbars to an int throwing an ArgumentOutOfRangeException

I have a Form that looks like the Find form on Notepad++. There is a tabControl with 2 tabs. Each tab has a trackbar and I want the value of each trackbar to be the same, if somebody moves trackbar1 then trackbar2 moves automatically. Find form…
Eoghan
  • 11
  • 2
1
vote
1 answer

C# Changing color of label based on trackbar value

I am working with a trackbar that has a value of 0 to 100. In my code automatic = 0 that you see in the image below. What i am trying to accomplish is that any number below 35 should change the labels (lableFS) forcolor to red, while any number…
user3627587
  • 33
  • 1
  • 8
1
vote
1 answer

win32 C++ Custom Color for Trackbar thumb

I have spent today searching everywhere for a concrete explanation or example of coloring the thumb on a trackbar (slider) in win32 C++. Everything I've found has been partially explained, and in trying every conceivable variation I have come up…