Re: PropertyGrid and Password Fields.

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Marina (someone_at_nospam.com)
Date: 11/05/04

  • Next message: Matthias Pieroth: "selection on designtime"
    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?
    >
    >
    >


  • Next message: Matthias Pieroth: "selection on designtime"