PRB: Asterisks Don't Hide an RDC Password Set in Design Time

Last reviewed: October 30, 1995
Article ID: Q137024
The information in this article applies to:
  • Standard, Professional, and Enterprise Editions of Microsoft Visual Basic, 16-bit and 32-bit, for Windows, version 4.0

SYMPTOMS

When you set the Password property of the RemoteData control (RDC) at design time, it is possible for others to read the password on your screen as it is entered because the password is not filtered by asterisks. When the ODBC dialog box does hide the password by converting it into asterisks.

CAUSE

The RDC does not control the edit field in the Property window and therefore cannot force asterisks to be displayed.

RESOLUTION

Passwords that need to be protected as sensitive information should not be coded into the Properties window of the RemoteData control.

STATUS

This behavior is by design.

MORE INFORMATION

Steps to Reproduce Behavior

  1. Start a new project in Visual Basic. Form1 is created by default.

  2. Place a RemoteData control on Form1, and set the Connect property of the RemoteData control to ODBC.

  3. Type a value into the Password property of the RemoteData control. Note that the password is readable.

  4. Run the program. After you select a DataSource, the ODBC driver manager displays the login dialog, and the password is displayed as asterisks.


Additional reference words: 4.00 vb4win vb4all
KBCategory: kbprg kbprb
KBSubcategory: PrgOther


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: October 30, 1995
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.