PDA

Click to See Complete Forum and Search --> : passwordchar problems


rothj0hn
Jan 29th, 2010, 02:01 AM
help!

one of my text box just act weird lately.
before the passwordchar works but all of a sudden it was messed up..

now my textbox display normal values not passwordchar(*). ive already check its properties. then also tried to delete this textbox and create a new one with same name then change it passwordchar properties but it still fails to display. it just display normal text.

i just pass values to the textbox from a variable

txtPIN.text = variablename


Me.txtPIN.Font = New System.Drawing.Font("Tahoma", 11.0!, System.Drawing.FontStyle.Regular)
Me.txtPIN.Location = New System.Drawing.Point(87, 41)
Me.txtPIN.Name = "txtPIN"
Me.txtPIN.PasswordChar = Global.Microsoft.VisualBasic.ChrW(42)
Me.txtPIN.ReadOnly = True
Me.txtPIN.Size = New System.Drawing.Size(120, 24)
Me.txtPIN.TabIndex = 59
Me.txtPIN.TabStop = False


whats wrong with it?

petevick
Jan 31st, 2010, 07:19 AM
Just tried that code on mine, adding 'Me.txtPin.Text = "1234565"' and it works fine