+ 2
Binding progressbar1 to label1
Hi, there is progressbar1 and there is label1, it is necessary that when you enter any number from 0 to 100, slider is loaded at the same percentage, that is, if in label 10, then in slider the same, somehow so)
10 ответов
+ 2
So the progressbar has the properties, Minimum, maximum and value
pBar.Minimum = 0;
pBar.Maximum = 100;
pBar.Value = 70;
The minimum and maximum define the ratio.
The value is the current state of the progressbar.
https://docs.microsoft.com/en-us/dotnet/api/system.windows.forms.progressbar?view=netframework-4.8
https://www.c-sharpcorner.com/article/progressbar-in-C-Sharp/
https://www.dotnetperls.com/progressbar
+ 3
Do you already have a slider component on your form or are you looking for one ?
If you already have slider component what is it called ?
+ 3
sneeze Thank you)
+ 2
Do you use Winform or WPF ?
+ 2
I like to know the type name of the component.
If you select it from the toolbox what is it called ?
If you are in the code and hoover you mouse over it, can you give me the text in the hint.
for "button1" this is (field) Button Form1.button1
In my visual studio, when I am building a winform application. I do not have a slider component.
I doubt it is a native Visual Studio component.
But I like to find out.
Can you give more information ?
Did you name it slider1 ?
+ 2
Thanks for your answer. I have seen the progressbar. I will have a look.
+ 2
sneeze Thanks for the info)
+ 1
sneeze Winform
+ 1
sneeze slider1
+ 1
sneeze I confused the names of the components a bit, these steps need to be done with the progressbar component, sorry)