2
Answers

Round number in windows

I am having a value Double price = 10.2; I want output to 11. When I use Math.Round (price) tge output is 10 but I need 11. Is there any built in function in desktop application
Answers (2)
0
Sal Rosales
NA 9 0 16y

ok, I just throught there might have been a If (control is not checkbox). An else statement it will be.

thanks

0
Niradhip Chakraborty
NA 6.5k 527k 16y
foreach (Control control in Controls)
{
      if (control is CheckBox)
      {
         //  you know code here for control which is checkbox
      }
      else
       {
        //  you know code here for control which is not checkbox
       }
}