store user data

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • pei_world

    #1

    store user data

    hi
    I am new to C# programming. can anyone tell me what is the standard way to
    store high sensitive user data for application, so that application next run
    can get back those data.


  • Douglas Perkes

    #2
    store user data

    I have found that the best way to store user data for a
    Windows Forms application is in the UserAppDataPath
    location.

    Here's some information about it from the MSDN
    Documentation:

    Application.Use rAppDataPath Property
    Gets the path for the application data of a user.

    [C#]
    public static string UserAppDataPath {get;}

    Property Value
    The path for the application data of a user.

    Remarks
    If a path does not exist, one is created in the following
    format:

    Base Path\ CompanyName\ ProductName\ ProductVersion

    Data stored in this path is part of user profile that is
    enabled for roaming. A roaming user works on more than
    one computer in a network. The user profile for a roaming
    user is kept on a server on the network and is loaded
    onto a system when the user logs on. For a user profile
    to be considered for roaming, the operating system must
    support roaming profiles and it must be enabled.

    A typical Base Path, as identified in the path above, is
    C:\Documents and Settings\ username\Applic ation Data.

    Good Luck,

    Doug

    [color=blue]
    >-----Original Message-----
    >hi
    > I am new to C# programming. can anyone tell me what is[/color]
    the standard way to[color=blue]
    >store high sensitive user data for application, so that[/color]
    application next run[color=blue]
    >can get back those data.
    >
    >
    >.
    >[/color]

    Comment

    Working...