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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C#
  4. Sessions in C# Desktop Application

Sessions in C# Desktop Application

Scheduled Pinned Locked Moved C#
csharphelptutorial
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.
  • A Offline
    A Offline
    Anil Kumar Arvapalli
    wrote on last edited by
    #1

    Iam developing a Desktop Based Application. Where user logins into it in Form1. I have to retrvie Information on Logged in Profile Name in Form 6, I have to get the Username in Form6. How to hold the Username, any Solution for it. As of now iam using a text file and reading from it when required... Please Help me....

    K OriginalGriffO 2 Replies Last reply
    0
    • A Anil Kumar Arvapalli

      Iam developing a Desktop Based Application. Where user logins into it in Form1. I have to retrvie Information on Logged in Profile Name in Form 6, I have to get the Username in Form6. How to hold the Username, any Solution for it. As of now iam using a text file and reading from it when required... Please Help me....

      K Offline
      K Offline
      Khaniya
      wrote on last edited by
      #2

      As I understand you are confuse with session on web. There is nothing like session in Desktop Application. Here you can use OOP fundamental by making entiry(class) of user profile and pass reference to every form where you need it I know this is not enough but I need more proper description. Thanks :)

      Life's Like a mirror. Smile at it & it smiles back at you.- P Pilgrim So Smile Please

      1 Reply Last reply
      0
      • A Anil Kumar Arvapalli

        Iam developing a Desktop Based Application. Where user logins into it in Form1. I have to retrvie Information on Logged in Profile Name in Form 6, I have to get the Username in Form6. How to hold the Username, any Solution for it. As of now iam using a text file and reading from it when required... Please Help me....

        OriginalGriffO Offline
        OriginalGriffO Offline
        OriginalGriff
        wrote on last edited by
        #3

        It depends on what kind of app you are producing: multi-machione, or single. For multiple machines, the obvious solution is to use a small database, if you can install either MSSQL express or MySql on the relevant machines. If not, then consider an XML file via datasets, but be aware that you will have to cope with multi-user problems yourself, if you are using a central repository for several machines. If it is just multiple persons login in on a single machine, and no networked connection is expected, then I would suggest the App.Config file, or in desperation the Registry.

        You should never use standby on an elephant. It always crashes when you lift the ears. - Mark Wallace C/C++ (I dont see a huge difference between them, and the 'benefits' of C++ are questionable, who needs inheritance when you have copy and paste) - fat_boy

        "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
        "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

        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