+ 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)

18th Jan 2020, 7:35 PM
olmtvck
olmtvck - avatar
10 Answers
+ 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
18th Jan 2020, 9:44 PM
sneeze
sneeze - avatar
+ 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 ?
18th Jan 2020, 9:06 PM
sneeze
sneeze - avatar
+ 3
sneeze Thank you)
18th Jan 2020, 9:41 PM
olmtvck
olmtvck - avatar
+ 2
Do you use Winform or WPF ?
18th Jan 2020, 8:24 PM
sneeze
sneeze - avatar
+ 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 ?
18th Jan 2020, 9:31 PM
sneeze
sneeze - avatar
+ 2
Thanks for your answer. I have seen the progressbar. I will have a look.
18th Jan 2020, 9:39 PM
sneeze
sneeze - avatar
+ 2
sneeze Thanks for the info)
18th Jan 2020, 9:54 PM
olmtvck
olmtvck - avatar
+ 1
sneeze Winform
18th Jan 2020, 8:32 PM
olmtvck
olmtvck - avatar
+ 1
sneeze slider1
18th Jan 2020, 9:09 PM
olmtvck
olmtvck - avatar
+ 1
sneeze I confused the names of the components a bit, these steps need to be done with the progressbar component, sorry)
18th Jan 2020, 9:37 PM
olmtvck
olmtvck - avatar