Previous | Index | Next 

PasswordChar property

This property is of String type under VB6 and of Char type under .NET. This causes a minor problem because you can’t assign an “empty char” to the PasswordChar property in VB.NET; to disable the password feature in VB.NET you must assign an ASCII 0 char to this property.

For the highest compatibility, VB Migration Partner supports a PasswordChar property of String type. If a multi-char string is assigned to this property, only the first character is used to define the password char, as in VB6. Notice that a different property – named PasswordChar_, with a trailing underscore) is used to assign the property in the Properties window.

 

Previous | Index | Next