c# - Is it possible to reset a progress bar with code? -


He is programming a 2D race game with C #. And IM stuck on this piece forever, I was wondering if it is possible to reset a progress bar with the code.

  if (bugrends.bounds.instheets (pettops.bounds)) {fuel 2. ?? }  

There are bugrend and peatstop picture boxes when inter sects with Bangerad Petstop. I should have the value of progress bar again 100. Fuel2 is the name of my progress bar.

You have to set value property C # data object in many simple controls Values ​​are usually used for that which usually holds.

  if (bugrends.bounds.interface (pettops.bounds)) {Fuel2.Value = 100; }  

Comments

Popular posts from this blog

java - Can't add JTree to JPanel of a JInternalFrame -

javascript - data.match(var) not working it seems -

javascript - How can I pause a jQuery .each() loop, while waiting for user input? -