Private Sub TextBox2_GotFocus(sender As Object, e As EventArgs) Handles TextBox2.GotFocus With TextBox2 If .Text = "Password" Then .Text = Nothing .ForeColor = Color.Black .UseSystemPasswordChar = True End If End With End Sub
An unhandled exception of type 'System.ComponentModel.Win32Exception' occurred in System.Windows.Forms.dll Additional information: Error creating window handle.
.UseSystePasswordChar = True
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)