急求vb:如何把Text里变“*”的密码在Lable里显示

来源:百度知道 编辑:UC知道 时间:2024/07/06 18:28:55
分别创一个Text,Label和commanf .使Text的PasswordChar为*,然后如何让点击按钮后Text里的*在Label里显示出来??

上面前三个回答都是对的怎么不采纳呢?
label1.caption=text1.text

label1.caption=text1

private sub commanf_click()
label1 = text1
end sub

label1.caption=Text1.Text

2222

'你是不是要这样的效果呀?
Private Sub Command1_Click()
Label1.Caption = ""
n = Len(Text1.Text)
For i = 1 To n
Label1.Caption = Label1.Caption & "*"
Next
End Sub