老兄,这是VB嘛,不要搞得那么复杂吧,就用text属性就可以了。

解决方案 »

  1.   

    你可以把你的系统换个!换个win32的用用@
      

  2.   

    真的没办法?
    那么有没有办法使原来显示为“*"的edit恢复正常
      

  3.   

    SendMessage hWnd, EM_SETPASSWORDCHAR, 0, ByVal 0&EM_SETPASSWORDCHAR
    An application sends an EM_SETPASSWORDCHAR message to set or remove the password character for a single-line edit control when the user types text. When a password character is set, that character is displayed in place of each character the user types. EM_SETPASSWORDCHAR 
    wParam = (WPARAM) (UINT) ch;    // character to display 
    lParam = 0;                     // not used; must be zero 
     
    Parameters
    ch 
    Value of wParam. Specifies the character to be displayed in place of the character typed by the user. If this parameter is zero, the characters typed by the user are displayed. 
    Return Values
    This message does not return a value. Res
    When the EM_SETPASSWORDCHAR message is received by an edit control, the edit control redraws all visible characters by using the character specified by the ch parameter. If the edit control is created with the ES_PASSWORD style, the default password character is set to an asterisk (*). This style is removed if an EM_SETPASSWORDCHAR message is sent with the ch parameter set to zero. QuickInfo
      Windows NT: Requires version 3.1 or later.
      Windows: Requires Windows 95 or later.
      Windows CE: Requires version 1.0 or later.
      Header: Declared in winuser.h.