how can i save this?
-
hi i am currently writing an application where the user can save as much as he wants those are splitted in A[] and B[] (String[]) a contains A name and B contains a path related to the name of A i want that A will be shown in a listbox (all A's) and when you click on it i want a messagebox showing A and B together (the right one, e.g. A[5] and B[5]; not A[4] and B[2] or so) i am open for all ways of saving, but i do not have an own idea how i can make this thx
-
hi i am currently writing an application where the user can save as much as he wants those are splitted in A[] and B[] (String[]) a contains A name and B contains a path related to the name of A i want that A will be shown in a listbox (all A's) and when you click on it i want a messagebox showing A and B together (the right one, e.g. A[5] and B[5]; not A[4] and B[2] or so) i am open for all ways of saving, but i do not have an own idea how i can make this thx
You can create a serialize class and encapsualte your class there and store your data in a XML file,for working with XML there are lots of projects in this site. Or if you do not want to store it in a XML,you can store that class in dat file. Mazy No sig. available now.
-
hi i am currently writing an application where the user can save as much as he wants those are splitted in A[] and B[] (String[]) a contains A name and B contains a path related to the name of A i want that A will be shown in a listbox (all A's) and when you click on it i want a messagebox showing A and B together (the right one, e.g. A[5] and B[5]; not A[4] and B[2] or so) i am open for all ways of saving, but i do not have an own idea how i can make this thx
- You can use a ListView instead of the ListBox, and store the path (B) in the .Tag property of each ListViewEntry. When you click a name (A), you can read the path from the Tag property: for(int n=0; n