Windows Develop Bookmark and Share   
 index > Windows Forms Designer > Password in PropertyGrid
 

Password in PropertyGrid

I'm using a PropertyGrid in my application and all is well apart from one thing. One of the properties is a password. Does anyone know how to force the ProperyGrid to display another character (like a *) to be displayed instead of the actual data. Is there a way of getting access to the GridItems control (in this case the textbox)? 

Any ideas or suggestions would be great.

Thanks in advance

Andy
MigrationUser 1  Thursday, October 28, 2004 7:20 AM
I don't think you can change the grid display itself, but you could not allow text to be entered there by using a TypeConverter with CanConvertFrom returning false for strings. Then use a UITypeEditor to pop up a dialog where you can enter the password in a masked form.
MigrationUser 1  Friday, October 29, 2004 9:53 AM
Also, in the ConvertTo, when converting to a string, convert to a series of *.
MigrationUser 1  Wednesday, November 03, 2004 1:55 PM

You can use google to search for other answers

Custom Search

More Threads

• how to add event KeyPress in Panel?
• Custom combobox behavior
• How to organize a field with "Last changed date/time"?
• Using List View control in VB.Net 2005?
• Signed assemblies and asmmeta file conflict?
• MDI Child Form Does NOT ShowInTaskbar Issue
• One strange problme
• Using DirectX to render non-game Windows.Forms controls
• Forms inheritance CreateInstanceImpl
• get events of an object declared in code