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. Windows Forms
  4. Winforms Security System

Winforms Security System

Scheduled Pinned Locked Moved Windows Forms
csharpwinformssecuritytutorial
7 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.
  • K Offline
    K Offline
    Kit Fisto
    wrote on last edited by
    #1

    Hello everyone. I'm building a forms application and i want to build a security system but i don't know where to start. I have divided my application in modules and i have a login form. But want to build something like windows: Users can see somethings and can press some button but in other plases he cannot. Could some one give some lights so i can guide myself. I would like to build it myself but if you could point out some 3rd party product in last resourt lol. Thanks in advance CodeProject gurus lol.

    D W 2 Replies Last reply
    0
    • K Kit Fisto

      Hello everyone. I'm building a forms application and i want to build a security system but i don't know where to start. I have divided my application in modules and i have a login form. But want to build something like windows: Users can see somethings and can press some button but in other plases he cannot. Could some one give some lights so i can guide myself. I would like to build it myself but if you could point out some 3rd party product in last resourt lol. Thanks in advance CodeProject gurus lol.

      D Offline
      D Offline
      dan sh
      wrote on last edited by
      #2

      Ice_LS00 wrote:

      Users can see somethings and can press some button but in other plases he cannot.

      I guess you mean that you need to give user specific access rights. In this case, you can implement roles and rights based application. You can have certain roles defined in the database and provide them with certain rights. Then you can assign each user with a role and depending upon that you can provide the access rights.

      The word "politics" describes the process so well: "Poli" in Latin meaning "many" and "tics" meaning "bloodsucking creatures." जय हिंद

      1 Reply Last reply
      0
      • K Kit Fisto

        Hello everyone. I'm building a forms application and i want to build a security system but i don't know where to start. I have divided my application in modules and i have a login form. But want to build something like windows: Users can see somethings and can press some button but in other plases he cannot. Could some one give some lights so i can guide myself. I would like to build it myself but if you could point out some 3rd party product in last resourt lol. Thanks in advance CodeProject gurus lol.

        W Offline
        W Offline
        Wendelius
        wrote on last edited by
        #3

        One way to handle this is to use RoleProvider[^] and MembershipProvider[^] classes (inherit your own implementations). Those classes help you to create custom role-based privileges. On those pages there are good example implementations you could have a look at.

        The need to optimize rises from a bad design.My articles[^]

        K 1 Reply Last reply
        0
        • W Wendelius

          One way to handle this is to use RoleProvider[^] and MembershipProvider[^] classes (inherit your own implementations). Those classes help you to create custom role-based privileges. On those pages there are good example implementations you could have a look at.

          The need to optimize rises from a bad design.My articles[^]

          K Offline
          K Offline
          Kit Fisto
          wrote on last edited by
          #4

          Isn't this for ASP.NET? I'm developing a winforms application can i still use this? Thanks for your reply :)

          W 1 Reply Last reply
          0
          • K Kit Fisto

            Isn't this for ASP.NET? I'm developing a winforms application can i still use this? Thanks for your reply :)

            W Offline
            W Offline
            Wendelius
            wrote on last edited by
            #5

            Ice_LS00 wrote:

            Isn't this for ASP.NET? I'm developing a winforms application can i still use this

            Yes you can use it. Simply add reference to System.Web. The examples are for ASP.NET and I believe it's mostly used in ASP scenarios but there's no reason why you couldn't use those in winforms.

            Ice_LS00 wrote:

            Thanks for your reply

            You're welcome :)

            The need to optimize rises from a bad design.My articles[^]

            K 1 Reply Last reply
            0
            • W Wendelius

              Ice_LS00 wrote:

              Isn't this for ASP.NET? I'm developing a winforms application can i still use this

              Yes you can use it. Simply add reference to System.Web. The examples are for ASP.NET and I believe it's mostly used in ASP scenarios but there's no reason why you couldn't use those in winforms.

              Ice_LS00 wrote:

              Thanks for your reply

              You're welcome :)

              The need to optimize rises from a bad design.My articles[^]

              K Offline
              K Offline
              Kit Fisto
              wrote on last edited by
              #6

              I thank you again my friend. Good programming.

              W 1 Reply Last reply
              0
              • K Kit Fisto

                I thank you again my friend. Good programming.

                W Offline
                W Offline
                Wendelius
                wrote on last edited by
                #7

                You're welcome :)

                The need to optimize rises from a bad design.My articles[^]

                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