Click here to Skip to main content
15,880,725 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
Hi, I want to make a program that will hide all of my chars when I type something, for example when ever you type your password in a masked textbox it hides your text. Is it possible to do that in everything? like right now in this post, search boxes anything!

I think it would be a fine project for me to learn programming, plus I think it can really help with spyware viruses(useless against key loggers sadly) but nether the less a useful and easy project to work on.

I am using C# as my language and windows 7 is my operating system.
Posted

This is an insane 'learning' project. You'd have to hook in to the existing applications, and change them. I am not sure if it's possible in WPF, but I know the methods I can think of, would not work in WPF. In any case, you'd be learning how to do things that are ugly and should be avoided. I suggest choosing another learning project, or better yet, buying a book and working through the examples in it, to make sure you learn things in a sensible order.
 
Share this answer
 
Comments
MR. AngelMendez 7-Feb-12 9:58am    
I was thinking on a more different approach, of course i know it would be insane to try to hook all applications in my system and don't forget new ones. So I was thinking more like temporary changing the computer system's fonts to bullets, that way I can always be writing in bullets. well that's my hypothesis. can this be done?
Christian Graus 7-Feb-12 10:01am    
You would have to change all the system fonts. I'm sure you'd run in to permission problems on Windows 7 and Vista if you tried this, and it would be messy.
MR. AngelMendez 7-Feb-12 10:51am    
i just recently found out that you can create a custom font using a tool called private character editor but how can I use this for all the keystrokes?
Sergey Alexandrovich Kryukov 7-Feb-12 21:43pm    
This API is not suitable for what you want. Besides, such character is implemented using a separate font.
--SA
Christian Graus 7-Feb-12 10:52am    
You would have to replace ALL the fonts on the system to all be copies of your font, so that they all WERE your font, unless there's some sort of hook you can use to return the wrong font. But, again, this will not teach you anything useful about programming applications for Windows.
Hi angel :
I think your idea is very interesting !,here is my answer hope you will find what you are looking for :

You may build an application as a service (or hidden process) which its mission is to hook on every window (using API functions) and convert any Text box to password char ..

So will need :
1- API functions (a C# wrapper version ) :
FindWindow,SetWindowParam ...so on
2- Notify icon on tray area that pauses the whatever do to the process.


References:
start here and use the idea not C++ code ! ;)
Password SPY++[^]

well let me know if this works and I'll be glad..
best wishes and good luck ..
 
Share this answer
 
v2
Comments
Christian Graus 7-Feb-12 10:00am    
This is what I was thinking. It won't work for WPF, and it is ugly as hell and doesn't teach any useful programming ideas to someone who is new to coding.
It is note clear what you want to do.
You could probably refer to the visible attribute that a control have.
Second if you have an asp you have the visible attribute for them.
But what is the point to write something if you can see or other people can't either.
 
Share this answer
 
Comments
Christian Graus 7-Feb-12 10:01am    
It's as clear as day what he wants.

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