与GTK#中的密码字符等效 [英] Equivalent of Password Char in GTK#

查看:46
本文介绍了与GTK#中的密码字符等效的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在将WinForms应用程序移植到GTK#.在WinForms版本中,我有一个文本框,其密码字符为"*",但是不幸的是,我似乎无法在GTK#中复制它.任何帮助将不胜感激.

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.

谢谢,克里斯

推荐答案

对于仍在寻找此答案的人,就在这里.

For whoever is still looking for this answer, here it is.

对于任何给定的条目,如果将成员"visibility"更改为"false",您将获得隐藏的字符,例如:

For any given entry, if you turn the member "visibility" to "false" you will get hidden characters such as:

所以

foo.Visibility = false;

这篇关于与GTK#中的密码字符等效的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆