Is there a way to take a text, from a textbox & later passwordChar the text.
I'm not using a masked textbox.
I tried:
textBox1.Passwo rdChar = '*';
but this didn't change my text. I know how to passwordchar, but I don't know
how to take a text THEN passwordchar it...Any code samples will be great!
please keep it simple b/c im a beginner 5 10381
You need to reset the text in the TextBox after assigning PasswordChar:
textBox1.Passwo rdChar = '*';
textBox1.Text = textBox1.Text;
HTH,
Robert
"Hareth" <ab******@hotma il.com> wrote in message
news:OK******** ******@TK2MSFTN GP14.phx.gbl... Is there a way to take a text, from a textbox & later passwordChar the text. I'm not using a masked textbox.
I tried:
textBox1.Passwo rdChar = '*';
but this didn't change my text. I know how to passwordchar, but I don't know how to take a text THEN passwordchar it...Any code samples will be great!
please keep it simple b/c im a beginner
It did not work
"Robert Misiak" <rm*****@users. cutthispartout. sourceforge.net > wrote in
message news:hy******** ********@newsre ad1.news.pas.ea rthlink.net... You need to reset the text in the TextBox after assigning PasswordChar:
textBox1.Passwo rdChar = '*'; textBox1.Text = textBox1.Text;
HTH, Robert
"Hareth" <ab******@hotma il.com> wrote in message news:OK******** ******@TK2MSFTN GP14.phx.gbl... Is there a way to take a text, from a textbox & later passwordChar the text. I'm not using a masked textbox.
I tried:
textBox1.Passwo rdChar = '*';
but this didn't change my text. I know how to passwordchar, but I don't know how to take a text THEN passwordchar it...Any code samples will be great!
please keep it simple b/c im a beginner
Hello Hareth,
I don't think the assignment:
textBox1.Text = textBox1.Text;
will work because it detects that it is the same and will not actually reset the text to the same value.
You could possibly try this:
textBox1.Passwo rdChar = '*'
string tmp = textBox1.Text;
textBox1.Clear( );
textBox1.Text = tmp;
This seems like such a hack but I don't know of any other way right now.
HTH
Wes Haggard http://weblogs.asp.net/whaggard/ It did not work
"Robert Misiak" <rm*****@users. cutthispartout. sourceforge.net > wrote in message news:hy******** ********@newsre ad1.news.pas.ea rthlink.net...
You need to reset the text in the TextBox after assigning PasswordChar:
textBox1.Passwo rdChar = '*'; textBox1.Text = textBox1.Text; HTH, Robert
doesnt work
"Robert Misiak" <rm*****@users. cutthispartout. sourceforge.net > wrote in
message news:hy******** ********@newsre ad1.news.pas.ea rthlink.net... You need to reset the text in the TextBox after assigning PasswordChar:
textBox1.Passwo rdChar = '*'; textBox1.Text = textBox1.Text;
HTH, Robert
"Hareth" <ab******@hotma il.com> wrote in message news:OK******** ******@TK2MSFTN GP14.phx.gbl... Is there a way to take a text, from a textbox & later passwordChar the text. I'm not using a masked textbox.
I tried:
textBox1.Passwo rdChar = '*';
but this didn't change my text. I know how to passwordchar, but I don't know how to take a text THEN passwordchar it...Any code samples will be great!
please keep it simple b/c im a beginner
Try this:
textBox1.Passwo rdChar = '*';
textBox1.Refres h();
Chris Jobson
"Hareth" <ab******@hotma il.com> wrote in message
news:uo******** ******@TK2MSFTN GP15.phx.gbl... doesnt work
"Robert Misiak" <rm*****@users. cutthispartout. sourceforge.net > wrote in message news:hy******** ********@newsre ad1.news.pas.ea rthlink.net... You need to reset the text in the TextBox after assigning PasswordChar:
textBox1.Passwo rdChar = '*'; textBox1.Text = textBox1.Text;
HTH, Robert
"Hareth" <ab******@hotma il.com> wrote in message news:OK******** ******@TK2MSFTN GP14.phx.gbl... Is there a way to take a text, from a textbox & later passwordChar the text. I'm not using a masked textbox.
I tried:
textBox1.Passwo rdChar = '*';
but this didn't change my text. I know how to passwordchar, but I don't know how to take a text THEN passwordchar it...Any code samples will be great!
please keep it simple b/c im a beginner
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Rick |
last post by:
In VB .Net how do I make the PasswordChar property of a Textbox work out to
be that nice big round dot that we see in most system password fields? There
is no special character I can see to place in the PasswordChar property to
do this.
Thanks.
|
by: John |
last post by:
I am creating an application which is password controlled on startup. I
created a textbox for the user to enter the password. However, I would
like to also have a menu option so the user can choose to see '*' in the
password box, or the plain text that they are typing in. I want to do
this because it is for pocketpc2002 and the characters might not always
appear as you think you are writing them in, hence the user option.
The problem...
|
by: rosty |
last post by:
This is taken from MSDN
(http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html
/frlrfsystemwindowsformstextboxclasspasswordchartopic.asp)
"When the PasswordChar property is set to true, cut, copy, and paste actions
in the control using the keyboard are not allowed, regardless of whether the
Multiline property is set to true or false."
Is it a typo in MSDN or something? How can i set PasswordChar to true since
it is...
|
by: siddhiash |
last post by:
Hi Friends
I want to add PasswordChar Property which shows ****** for string which I
type in PropertyGrid Control.
Regards,
Siddharth
|
by: Ryan |
last post by:
I'm creating a user control that has a handful of controls on it (19 in
total). One of the controls on the UC is a textbox for a user's password, so
I've set the PasswordChar property to "*". I rebuild and all is well.
The problem arises when I have the PasswordChar set, and then try to set
Localizable to True for the UC. If I set Localizable to true and have
PasswordChar set and rebuild, Visual Studio 2005 will then try to reload the...
| |
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
| |
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |