Yes, in the Get for the property, you can return a * for every character in
the stored local variable. In the Set, you set the local variable.
The only issue is, at some point in runtime you will need to get the actual
local variable. If the property is only for the internal use of the class,
you can use the variable directly without going through the property's Get.
Otherwise you will need to come up with another solution of how to allow
external objects to get the property's actual value at runtime.
> I would like to implement the password field inside the .NET PropertyGrid
> control.
> That means if the user types the string value the PropertyGrid displays "*"
> but captures actual typed string.
>
> Is there a way to do that?