Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. how can i save this?

how can i save this?

Scheduled Pinned Locked Moved C#
question
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    Peter Reiter
    wrote on last edited by
    #1

    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

    M C 2 Replies Last reply
    0
    • P Peter Reiter

      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

      M Offline
      M Offline
      Mazdak
      wrote on last edited by
      #2

      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.

      1 Reply Last reply
      0
      • P Peter Reiter

        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

        C Offline
        C Offline
        Corinna John
        wrote on last edited by
        #3
        1. 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
        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups