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. Visual Studio
  4. Storing and retrieving data

Storing and retrieving data

Scheduled Pinned Locked Moved Visual Studio
csharptutorial
5 Posts 5 Posters 24 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.
  • M Offline
    M Offline
    Member 13982471
    wrote on last edited by
    #1

    I'm frustrated. I want to learn how to create a file to store information like name, age, phone number, email, etc... in VB.Net I have tried google, youtube, books but cant find what I need. I want to be able to write code that would save my data and so I can retrieve it later in the program. I'm willing to pay someone if they can tell me how to do it. Thanks. Jeff

    V M L C 4 Replies Last reply
    0
    • M Member 13982471

      I'm frustrated. I want to learn how to create a file to store information like name, age, phone number, email, etc... in VB.Net I have tried google, youtube, books but cant find what I need. I want to be able to write code that would save my data and so I can retrieve it later in the program. I'm willing to pay someone if they can tell me how to do it. Thanks. Jeff

      V Offline
      V Offline
      Victor Nijegorodov
      wrote on last edited by
      #2

      Consider using database.

      1 Reply Last reply
      0
      • M Member 13982471

        I'm frustrated. I want to learn how to create a file to store information like name, age, phone number, email, etc... in VB.Net I have tried google, youtube, books but cant find what I need. I want to be able to write code that would save my data and so I can retrieve it later in the program. I'm willing to pay someone if they can tell me how to do it. Thanks. Jeff

        M Offline
        M Offline
        Maciej Los
        wrote on last edited by
        #3

        I'd suggest to start with [XmlSerialization](https://docs.microsoft.com/en-us/dotnet/standard/serialization/introducing-xml-serialization). All you need to do is to create [custom class](https://msdn.microsoft.com/en-us/library/ms973814.aspx), which will holds all your data. It might be a Person class:

        Public Class Person
        Private personName As String = String.Empty

        Public Property Name As String
            Get() As String
                 Return personName
            Edn Get
            Set (value As String)
                personName = value
            End Set
        End Property
        
        'your code here... 
        

        End Class

        For further details, please see: [XML Serialization and Deserialization Part 1](https://www.codeproject.com/Articles/483055/XML-Serialization-and-Deserialization-Part) [XML Serialization and Deserialization Part 2](https://www.codeproject.com/Articles/487571/XML-Serialization-and-Deserialization-Part-2) [XML Serialization – Tips & Tricks](https://www.codeproject.com/Articles/58287/XML-Serialization-Tips-Tricks) [A Complete Sample of Custom Class Collection Serialization and Deserialization](https://www.codeproject.com/Tips/787867/A-complete-sample-of-custom-class-collection-seria) - VB.NET example!!!

        1 Reply Last reply
        0
        • M Member 13982471

          I'm frustrated. I want to learn how to create a file to store information like name, age, phone number, email, etc... in VB.Net I have tried google, youtube, books but cant find what I need. I want to be able to write code that would save my data and so I can retrieve it later in the program. I'm willing to pay someone if they can tell me how to do it. Thanks. Jeff

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          I answered this question yesterday at Creating random access file with visual basic.net - Visual Basic Discussion Boards[^].

          1 Reply Last reply
          0
          • M Member 13982471

            I'm frustrated. I want to learn how to create a file to store information like name, age, phone number, email, etc... in VB.Net I have tried google, youtube, books but cant find what I need. I want to be able to write code that would save my data and so I can retrieve it later in the program. I'm willing to pay someone if they can tell me how to do it. Thanks. Jeff

            C Offline
            C Offline
            CareConsulting
            wrote on last edited by
            #5

            Hi Jeff, I am in agreement with Victor Using a database like(MySQL or SQL Server) is the best way to go. MySQL sets up faster and is lighter. Steps you would take will be: -install the Database server -create the table with the fields you want to store (name, age, etc.) -Save(Name) the table how you want (example: give the table the name "PersonInfo") -create a new Asp.Net Web Application Project in Visual Studio -use a web form in your project -From the Toolbox Menu search for "GridView"(it's easier to use as a beginner with data) then drag onto your web form. -you will have to click the right arrow and set up your datasource (which includes the connection credentials-user name-password you already set in MySQL or whichever database you use). Once that is set up you should be able to run the application and edit/Add new data to your database table. I would however highly recommend you navigate to some place like this: Microsoft Virtual Academy – Free Online Training for Developers, IT Professionals and Data Scientists[^] and view some Beginner tutorials on Visual Studio to become more familiar with the interface and check out this to get familiar with MySQL(if you choose to use it): Create Schema and table - MYSQL workbench - YouTube[^] In short to store and retrieve data via application you need -Database(and tables) -Application to read/write the information to the DB Happy hunting Regards, Patrick *Note why pay when info is free :)

            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