Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / Design Time / November 2004

Tip: Looking for answers? Try searching our database.

PropertyGrid and Password Fields.

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Kstoj - 03 Nov 2004 18:10 GMT
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?
Marina - 05 Nov 2004 18:29 GMT
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?

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.