CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 8 of 8

Threaded View

  1. #2
    Join Date
    Nov 2010
    Posts
    42

    Re: Fill Specific no of grid in C#

    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();
              }
    }
    Is that what you want?
    Last edited by Mastermosley; December 15th, 2010 at 10:21 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured