PRB: RDC/ODBC Password Display Inconsistencies

Last reviewed: August 7, 1996
Article ID: Q143264
The information in this article applies to:
  • Enterprise Edition of Microsoft Visual Basic, 32-bit only, for Windows, version 4.0

SUMMARY

When setting the password property of the RemoteData Control (RDC) at design time in the Property Window, asterisks are not substituted for the password characters. When the ODBC dialog box is displayed, the password is converted into asterisks.

CAUSE

The RDC does not control the edit field in the Property Window, and therefore cannot force asterisks to be displayed. An OLE custom control does not have direct control over the Property window supplied by the Visual Basic design environment. The Remote Data control does correctly use asterisks in its own Property page.

RESOLUTION

If you want to protect password information, use the property sheet provided by the Remote Data control itself. To access this property sheet either right mouse click on the control itself and choose the properties menu item or click on the (Custom) property button in the Visual Basic Property window. When you type the password, asterisks will be substituted for the characters. When this is completed, the password is not displayed in the Visual Basic property window, so security is not compromised.

MORE INFORMATION

Steps to Reproduce Behavior

  1. Start a new project in Visual Basic. Form1 is created by default.
2. Add a RemoteData Control on Form1. 3. Type a value into the password property of the RemoteData Control. Note
   that the password is readable.
4. Now delete the entry you made for the password property and go to the
   Property window supplied by the control itself. When you type in the
   password, property asterisks will be displayed instead of the characters
   you type.


Additional reference words: RDC password login asterisks
KBCategory: kbprg
KBSubcategory: APrgDataODBC


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: August 7, 1996
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.