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