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 / .NET Framework / General / October 2004

Tip: Looking for answers? Try searching our database.

paste to password

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
s-galit - 27 Oct 2004 11:03 GMT
hi,
i have a textbox that used for entering password (passwordChar=*)
when im doing cut,copy,paste to the textbox.text its not working
how to do the paste in this case?
thanks
C# Learner - 27 Oct 2004 11:49 GMT
> i have a textbox that used for entering password (passwordChar=*)
> when im doing cut,copy,paste to the textbox.text its not working
> how to do the paste in this case?

I just tried this (added a new System.Windows.Forms.TextBox to a form and
set its PasswordChar property to '*') and when I attempt to cut or copy
from it (Ctrl-X and Ctrl-C, respectively), a tooltip is displayed that
reads that I cannot copy text from a password field.  The cut and copy
context menu (right-click) items are disabled.  This is what I'd expect.

Pasting, on the other hand, works fine.

Can you explain what happens when you try, and how this doesn't meet your
expectations of what should happen?
s-galit - 27 Oct 2004 12:19 GMT
so you are saying that there is no way to do copy & cut to the password?
by the way the paste is working now
thank you for the help
Jon Skeet [C# MVP] - 27 Oct 2004 12:27 GMT
> so you are saying that there is no way to do copy & cut to the
> password?

It sounds like you're not wanting to do copy and cut *to* the password,
but *from* the password. This shouldn't be allowed for security
reasons.

Signature

Jon Skeet - <skeet@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too

C# Learner - 27 Oct 2004 12:31 GMT
>  so you are saying that there is no way to do copy & cut to the password?

Windows prevents it, and that seems logical to me -- imagine if an
application which remembers your password enabled copying from the password
text box.  Someone else using your computer could then copy and paste your
password into Notepad, for example, and they'd see your password in clear
text.
s-galit - 27 Oct 2004 12:57 GMT
right...  :)  thanks

> >  so you are saying that there is no way to do copy & cut to the password?
>
[quoted text clipped - 3 lines]
> password into Notepad, for example, and they'd see your password in clear
> text.

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.