Are there any APIs in Windows to turn a password textbox into something like this:
So that users will be able to reveal the password for a second while pressing the eye icon right next to textbox. Do you know any P/Invoke like API exists that I can call from my WinForms app?
No need for an API for that, you just toggle it yourself:
textBox1.PasswordChar = textBox1.PasswordChar == '\0' ? '*' : '\0';
For placing a button inside a textbox, see Button inside a winforms textbox
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With