Question simple array

developer_mahmoud

Well-known member
Joined
Nov 13, 2010
Messages
64
Programming Experience
1-3
hi
i havetwolabelsin my form with two ineger values i need to save these labels in an array and when i load the form again i need thesaveddata appear in two text boxes
 
but i need it with an array is there any availbility to do that in aaray i think arrays stores data but i dont know how to store data from a labels or textboxes and show it again
 
yes you can save those values in an array. But if you close your form you will lose those values.

If your looking to keep those values even after you close the form, you would need to save them into a file or in a database.

Examples of declaring arrays are all over the net

here: Arrays in VB .NET
 
Or, better yet, read the article I linked to above :)

It explains how to, for example, store data from labels or textboxes and show it again. If you read it and have questions, feel free to ask here.
 
Back
Top