473,399 Members | 4,254 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,399 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 1501
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.