Re: remove PasswordChar
Peter Osucha <[email protected]>
| Newsgroups | gmane.comp.windows.devel.dotnet.winforms |
|---|---|
| Message-ID | <[email protected]> |
Thanks Samir. -----Original Message----- From: Discussion forum for developers using Windows Forms to build apps and controls [mailto:[email protected]] On Behalf Of samir parekh Sent: Friday, April 13, 2007 11:07 AM To: [email protected] Subject: Re: [DOTNET-WINFORMS] remove PasswordChar working example private void button1_Click(object sender, EventArgs e) { textBox4.PasswordChar = '\0'; } tried in VS 2005 Peter Osucha <[email protected]> wrote: 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