Is that what you want?Code:private void Method() { int x = int.Parse(txtNoOfPumps.Text); if (x == Properties.Settings.Default.NoOfPumps) //Assuming NoOfPumps is a digit if not { //change int x to string x and get rid of the int.Parse FillXNumberOfGrids(); } }




Reply With Quote