473,322 Members | 1,510 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

paste to password

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
Jul 21 '05 #1
5 1499
s-galit <sg****@discussions.microsoft.com> wrote:
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?
Jul 21 '05 #2
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
Jul 21 '05 #3
s-galit <sg****@discussions.microsoft.com> wrote:
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.

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
Jul 21 '05 #4
s-galit <sg****@discussions.microsoft.com> wrote:
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.
Jul 21 '05 #5
right... :) thanks

"C# Learner" wrote:
s-galit <sg****@discussions.microsoft.com> wrote:
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.

Jul 21 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
by: chirs | last post by:
I have a code to disable ctrl-v (paste) on the 2nd box. The problem is that when I type ctrl-v, the text shows, then disappear after I release ctrl-v. How can I make it not to show in the box. In...
6
by: William J. Leary Jr. | last post by:
I'm running a VB6 program, the IDE for a compiler. Paste doesn't work if the text was cut/copied from within the program. That is: 1. Cut/copy inside the program, can't paste. Program:...
1
by: Herb E | last post by:
When selecting records from a combo box, everything works fine if the Item Number is typed in. For example, if I type in FC9612 it executes properly. However, in most instances, the item number...
4
by: Legendary Pansy | last post by:
I was checking out the 101 C# Samples, specifically Windows Forms - Use the Clipboard. I took a look at the code for a while, and I understand what the program is doing with the cut, copy, pasting...
2
by: Steve | last post by:
Hi all, Is it possible to disable pasting from the clipboard into a textbox ?? I can't find a property for it but I guess it must be possible. thanks Steve
7
by: lgbjr | last post by:
Hello All, I¡¯m using a context menu associated with some pictureboxes to provide copy/paste functionality. Copying the image to the clipboard was easy. But pasting an image from the clipboard...
5
by: s-galit | last post by:
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
0
by: squirrelonfire | last post by:
Hi I run postgreSQL from a remote server like this SSH -X cnguyen_db@okaram.spsu.edu ....enter the password Then I run bluefish& and psql The problem I'm having is that I can't copy and paste...
4
by: BartlebyScrivener | last post by:
Using Python on Debian Etch. What is the best way to paste a block of text in at the command prompt. I'm trying something like: Quote = raw_input("Paste quote here: ") Which works great...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.