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. UserControl (Passwords Property)

UserControl (Passwords Property)

Scheduled Pinned Locked Moved Visual Studio
databasesql-serversysadminquestion
7 Posts 3 Posters 7 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.
  • J Offline
    J Offline
    JM76
    wrote on last edited by
    #1

    Hi Everybody Before posting I have been looking for information about that, but I don´t find if is possible or not. This is how I create my property

    Public Property PasswordsSQLServer() As String
    Get
    Return _PasswordSQLServer
    End Get
    Set(ByVal Value As String)
    _PasswordSQLServer = Value
    End Set
    End Property

    But the question, It is possible to create a passwords property with ***** , like when you have to loging, I would like to connect to SQL Server and I need user and passwords. Thanks advanced and Sorry for my poor english. Regards

    Z 1 Reply Last reply
    0
    • J JM76

      Hi Everybody Before posting I have been looking for information about that, but I don´t find if is possible or not. This is how I create my property

      Public Property PasswordsSQLServer() As String
      Get
      Return _PasswordSQLServer
      End Get
      Set(ByVal Value As String)
      _PasswordSQLServer = Value
      End Set
      End Property

      But the question, It is possible to create a passwords property with ***** , like when you have to loging, I would like to connect to SQL Server and I need user and passwords. Thanks advanced and Sorry for my poor english. Regards

      Z Offline
      Z Offline
      ZurdoDev
      wrote on last edited by
      #2

      Yes, you're get can return **** instead in your property but then you may need the property to return the actual password. Sounds like a function might work better. Or, just let the control that displays the password mask it, which is how everyone else does it.

      There are only 10 types of people in the world, those who understand binary and those who don't.

      J 1 Reply Last reply
      0
      • Z ZurdoDev

        Yes, you're get can return **** instead in your property but then you may need the property to return the actual password. Sounds like a function might work better. Or, just let the control that displays the password mask it, which is how everyone else does it.

        There are only 10 types of people in the world, those who understand binary and those who don't.

        J Offline
        J Offline
        JM76
        wrote on last edited by
        #3

        Hi RyanDev Thank you so much for your tip, I will try with a function, because I have try to return ****, but I am doing something wrong because don´t work for me. Regards JM

        Z 1 Reply Last reply
        0
        • J JM76

          Hi RyanDev Thank you so much for your tip, I will try with a function, because I have try to return ****, but I am doing something wrong because don´t work for me. Regards JM

          Z Offline
          Z Offline
          ZurdoDev
          wrote on last edited by
          #4

          If you always want to return *** then change

          Return _PasswordSQLServer

          to

          Return "*******"

          There are only 10 types of people in the world, those who understand binary and those who don't.

          J 1 Reply Last reply
          0
          • Z ZurdoDev

            If you always want to return *** then change

            Return _PasswordSQLServer

            to

            Return "*******"

            There are only 10 types of people in the world, those who understand binary and those who don't.

            J Offline
            J Offline
            JM76
            wrote on last edited by
            #5

            Yeah, you are rigth, thank you!!! The problem is when I try to read this property, don´t works because show me "****" and this isn´t the real passwords.

            L 1 Reply Last reply
            0
            • J JM76

              Yeah, you are rigth, thank you!!! The problem is when I try to read this property, don´t works because show me "****" and this isn´t the real passwords.

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

              See Secure Password Authentication Explained Simply[^].

              J 1 Reply Last reply
              0
              • L Lost User

                See Secure Password Authentication Explained Simply[^].

                J Offline
                J Offline
                JM76
                wrote on last edited by
                #7

                Hi Richard Thank you so much for this information!!! :) Happy New Year 2016 :) Regards JM

                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