Results 1 to 4 of 4

Thread: [RESOLVED] Please advise the best way

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jan 2013
    Posts
    457

    Resolved [RESOLVED] Please advise the best way

    I am working on suduka program. This program contains a 9x9 grid of buttons and 9 grids that are 3x3. The grids of 9 are made up from and of the buttons in the 9x9. The variables to locate a button in the 9x9 are X,Y. The variables to locate the same button in the 3x3 grids are S,T,U. Given a button in need to know X,Y,S,T,U. I am thinking a dictionary would be the best way, but I am open to ideas.
    Thank you
    George

  2. #2
    eXtreme Programmer .paul.'s Avatar
    Join Date
    May 2007
    Location
    Chelmsford UK
    Posts
    24,272

    Re: Please advise the best way

    Why use buttons? You could use a datagridview...

    http://www.scproject.biz/sudoku.php

  3. #3
    .NUT jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    107,648

    Re: Please advise the best way

    If you really do want to use Button controls then put them in a TableLayoutPanel. It has methods to provide row, column and position for any child control.

  4. #4

    Thread Starter
    Hyperactive Member
    Join Date
    Jan 2013
    Posts
    457

    Re: Please advise the best way

    Thank you both I will check out your ideas.

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