How to save information from a TableLayoutPanel for use later in my program?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Jay Roberts
    New Member
    • Sep 2010
    • 1

    #1

    How to save information from a TableLayoutPanel for use later in my program?

    Visual Studio 2008

    I have a TableLayoutPane l (tlp01) with multiple rows (10) and columns(12), each with editable text boxes(r1c1, r1c2, r1c3, etc...) so that the end user may change the numbers supplied with different ones if he or she wishes. I've set it up in such a way that in order to show the appropriate TableLayoutPane l (tlp01,tlp02, or tlp03), the user must first select options from two drop-down menus, which when selected, will show the appropriate panel.

    My problem arises when, after selecting the correct TableLayoutPane l (and making changes if necessary), the user must then save the information from the TableLayoutPane l (and all the values contained therein) for use later and be able to draw upon it then. Many, many attempts to save the information have failed. Any thoughts on how I can accomplish this?

    Ideally, when a number is calculated (later in the program), that number will correspond with a specific number in the TableLayoutPane l. That number, in turn, will correspond with a row and a column. Each row and column has a specific header (a text label I have set up). Displaying that header text label is ultimately what I'm after.
  • Rodney Roe
    New Member
    • Oct 2010
    • 61

    #2
    Have you tried putting all your table information into an array and saving it to a textfile. You can then read/write to the text file whenever you want.

    Comment

    Working...