Jump to content

HOW HARD CAN IT BE?

Stack overflow complains about "not properly formatted as code" AND DOES NOT EVEN SAY HOW TO AND I CANNOT FIND A GUIDE!

 

My issue.

Whats the proper use for progressbar1 if 100% then

 

if (progressBar1.Maximum == 100)

what am i missing where does then go and where do i add the code that it excutes?

Link to comment
https://linustechtips.com/topic/1070884-if-progress-100-then/
Share on other sites

Link to post
Share on other sites

7 hours ago, ughiwanthackintosh said:

My issue.

Whats the proper use for progressbar1 if 100% then

 


if (progressBar1.Maximum == 100)

what am i missing where does then go and where do i add the code that it excutes?

If it's like any other GUI framework I've used, that property limits the maximum value the progress bar can be, not the actual value of the progress bar itself.

Link to comment
https://linustechtips.com/topic/1070884-if-progress-100-then/#findComment-12629640
Share on other sites

Link to post
Share on other sites

Yeah, stack overflow is a bit stingy about how you post a question. Good thing is mod will see and understand you are a first time user and link you to the guide on how to properly format and post your question. 

 

Compare that to Arch forum.....

One guy just abrasively told me "to at least make some effort to format your post correctly" and then shut me off. 

 

What a bunch of asshats on there. 

Sudo make me a sandwich 

Link to comment
https://linustechtips.com/topic/1070884-if-progress-100-then/#findComment-12629903
Share on other sites

Link to post
Share on other sites

11 hours ago, ughiwanthackintosh said:

HOW HARD CAN IT BE?

Stack overflow complains about "not properly formatted as code" AND DOES NOT EVEN SAY HOW TO AND I CANNOT FIND A GUIDE!

 

My issue.

Whats the proper use for progressbar1 if 100% then

 


if (progressBar1.Maximum == 100)

what am i missing where does then go and where do i add the code that it excutes?

First of all, which language, and which framework? :)

 

Does the progressBar perhaps have a method like "getProgress" or "getStatus"?

AMD Ryzen 7800 X3D, MSI B650 Project Zero, Antec C5, Gigabyte RTX 4080 Super Aero

 

Nikon D500 | Nikon 300mm f/4 PF  | Nikon 200-500 f/5.6 | Nikon 50mm f/1.8 | Tamron 70-210 f/4 VCII | Sigma 10-20 f/3.5 | Nikon 17-55 f/2.8 | Tamron 90mm F2.8 SP Di VC USD Macro | Neewer 750II

Link to comment
https://linustechtips.com/topic/1070884-if-progress-100-then/#findComment-12630096
Share on other sites

Link to post
Share on other sites

On 6/8/2019 at 5:34 AM, ughiwanthackintosh said:

HOW HARD CAN IT BE?

Stack overflow complains about "not properly formatted as code" AND DOES NOT EVEN SAY HOW TO AND I CANNOT FIND A GUIDE!

 

My issue.

Whats the proper use for progressbar1 if 100% then

 


if (progressBar1.Maximum == 100)

what am i missing where does then go and where do i add the code that it excutes?

progressBar1.Maximum is the max value it can reach. If you want to know if the bar is currently set at it's maximum you need to do

 

if(progressBar1.Value == progressBar1.Maximum)

 

.Value is the current position of the progress bar.

 

Out of curiosity what was your question on Stack, I can check and maybe reopen it if valid. But as @wasab mentioned people should have been very nice with you when you are new and tip you on how to change the question in order to make it valid. It is meant to be a Q&A mega library. Anyhow that's how we try to mod it.

Link to comment
https://linustechtips.com/topic/1070884-if-progress-100-then/#findComment-12633652
Share on other sites

Link to post
Share on other sites

  • 2 weeks later...
On 6/8/2019 at 10:43 PM, Fetzie said:

First of all, which language, and which framework? :)

 

Does the progressBar perhaps have a method like "getProgress" or "getStatus"?

 

.net framwork 4.6.2 C# visual studio 2019

Link to comment
https://linustechtips.com/topic/1070884-if-progress-100-then/#findComment-12662189
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×