Microsoft KB Archive/143264

= PRB: RDC/ODBC Password Display Inconsistencies =

Article ID: 143264

Article Last Modified on 5/7/2003

-

APPLIES TO


 * Microsoft Visual Basic 6.0 Learning Edition
 * Microsoft Visual Basic 6.0 Professional Edition
 * Microsoft Visual Basic 6.0 Enterprise Edition
 * Microsoft Visual Basic 4.0 32-Bit Enterprise Edition
 * Microsoft Data Access Components 2.5

-



This article was previously published under Q143264



SYMPTOMS
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.



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.

Keywords: kbprb kbrdo KB143264

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.