问题
I am in the middle of porting a WinForms app to GTK#. In the WinForms version, I have a textbox with a password char of "*", but unfortunately, I can not seem to replicate this in GTK#. Any help would be greatly appreciated.
Thanks, Chris
回答1:
For whoever is still looking for this answer, here it is.
For any given entry, if you turn the member "visibility" to "false" you will get hidden characters such as:
So
foo.Visibility = false;
来源:https://stackoverflow.com/questions/11696311/equivalent-of-password-char-in-gtk