Re: remove PasswordChar

Dave <[email protected]>
Newsgroups gmane.comp.windows.devel.dotnet.winforms
Message-ID <000001c77de0$6e6900b0$6400a8c0@omniscient1>
Yah...

Char is a value type, so it must have something to put in its memory block.
Null is not an option; it's a place in memory where Reference types can
point to, only to tell the system that they "don't point anywhere".  It has
no value in itself, thus cannot be copied in a value type's memory block.

I don't understand exactly why your char cannot receive the '' value, but
that is working: TextBox1.PasswordChar = New Char();

Have fun,
Dave.




-----Original Message-----
From: Discussion forum for developers using Windows Forms to build apps and
controls [mailto:[email protected]] On Behalf Of Peter
Osucha
Sent: April 13, 2007 10:33 AM
To: [email protected]
Subject: [DOTNET-WINFORMS] remove PasswordChar

I can't seem to figure out how to programmatically change the
PasswordChar property of a textbox to remove the password character.  It
can't be set to '' or a compile error occurs.  Same if setting to null.
I know I can set it easily in the properties window but now, for my own
curiousity, I would like to know how to remove the password character.

peter
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.