为了在 PropertyGrid 中将密码显示为‘*’需要使用 PasswordPropertyText 属性。
示例如下:
class Settings { [CategoryAttribute("Login"), DisplayName("Password"), DescriptionAttribute("Login Password")] |
private void MainForm_Load(object sender, EventArgs e) { |