Results 1 to 7 of 7

Thread: [RESOLVED] Save data??????

  1. #1

    Thread Starter
    Member
    Join Date
    Feb 2006
    Posts
    35

    Resolved [RESOLVED] Save data??????

    Don't know if this is the right place to ask, but I have a coding problem.

    I'm developing a program that starts some installationfiles. In the settings form I want the user to be able to edit the path of the installfiles. What's the right way to make the app dynamic?

    1. Don't know if xml is an option in VB Express 2005? If so, how?
    2. Tried to add a database to the app but it doesn't even recognize sql server 2005. Must be a config problem but don't know how to correct it.
    3. Or maybe as simple as saving the info in a txt file?

    Thanks in advance...
    Visual Basic 2005 Express
    SQL Server 2005 Express
    WinXP Pro

  2. #2
    Addicted Member bgard68's Avatar
    Join Date
    Mar 2006
    Location
    Arkansas
    Posts
    164

    Re: Save data??????

    You could simply let the user choose the path and store that path
    in a resource file.

    The user could either edit the resource file without the need for the code to
    be re-compiled or your program could save the changes in the resource file.
    Using Framework 1.1, VB.Net 2003 unless I
    state otherwise

  3. #3

    Thread Starter
    Member
    Join Date
    Feb 2006
    Posts
    35

    Re: Save data??????

    Quote Originally Posted by bgard68
    You could simply let the user choose the path and store that path
    in a resource file.

    The user could either edit the resource file without the need for the code to
    be re-compiled or your program could save the changes in the resource file.
    I'd rather have a edit option form i the app. As easy as possible for the user. It must be dynamic in that sense! U know, like everyday programs we use and can edit some options within the app.
    Visual Basic 2005 Express
    SQL Server 2005 Express
    WinXP Pro

  4. #4

    Thread Starter
    Member
    Join Date
    Feb 2006
    Posts
    35

    Re: Save data??????

    Nobody?
    Visual Basic 2005 Express
    SQL Server 2005 Express
    WinXP Pro

  5. #5
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: Save data??????

    You can use application settings. Create a setting in the Settings tab of the Project properties and then access it via My.Settings.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  6. #6

    Thread Starter
    Member
    Join Date
    Feb 2006
    Posts
    35

    Re: Save data??????

    If you are so kind, can you further explain how to do that. Never heard of creating a "setting" object. Maybe a link to how this works? Would really appreciate it.
    Visual Basic 2005 Express
    SQL Server 2005 Express
    WinXP Pro

  7. #7

    Thread Starter
    Member
    Join Date
    Feb 2006
    Posts
    35

    Re: Save data??????

    Never mind... found a very usefull link:

    http://msdn.microsoft.com/library/de...mysettings.asp
    Visual Basic 2005 Express
    SQL Server 2005 Express
    WinXP Pro

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width