Equivalent of Password Char in GTK#

你离开我真会死。 提交于 2021-02-05 11:32:38

问题


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;

enter image description here



来源:https://stackoverflow.com/questions/11696311/equivalent-of-password-char-in-gtk

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!