Re: PropertyGrid and Password Fields.
From: Marina (someone_at_nospam.com)
Date: 11/05/04
- Previous message: DRaiko: "Re: Hashtable property persistance"
- In reply to: Kstoj: "PropertyGrid and Password Fields."
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 5 Nov 2004 12:29:07 -0500
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.
"Kstoj" <kriss.stoj@itron.com.removethis> wrote in message
news:eNIe$fcwEHA.1400@TK2MSFTNGP11.phx.gbl...
> 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?
>
>
>
- Previous message: DRaiko: "Re: Hashtable property persistance"
- In reply to: Kstoj: "PropertyGrid and Password Fields."
- Messages sorted by: [ date ] [ thread ]