Click here to Skip to main content
15,914,795 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I really need an urgent and kind help in C#. I have managed after almost like dying to create Socket application using TCPListener but now the issue is when anyone within the same network telnet my machine at the specified port in my tcpListener, can be connected. It is not secured, so i created a function to ask user for password. But i don't know how can i hide the password when the user type it. something Like ****** or don't show what the user is typing. Please, with GOD's mercy help me. I'm fresh graduate and don't want to loose my job. How can i hide the password typed by the user. Or is there anyway to make my socket application secured where only those who logged in to my machine using SSH can telnet my socket application. I hope you understand what i mean. I'm really new to programming and might not know how to ask question. Help meeeeeeeeeeeeeeeeeee
Posted
Updated 16-Jul-10 16:44pm
v3

1 solution

If you are using a windows forms application, the textbox control has a PasswordChar property, set that to whatever symbol you want to use, OR set the UseSystemPasswordChar proptery to true to use as you may guess the systems default symbol.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900