Click here to Skip to main content
12,943,528 members (51,656 online)
Rate this:
Please Sign up or sign in to 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 7-Feb-12 2:45am
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

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.
angelllll 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.
angelllll 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?
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.
angelllll 7-Feb-12 12:55pm
yeah I guess this is a nogo then thanks everyone for the help
SAKryukov 7-Feb-12 21:42pm
Agree! a 5.
SAKryukov 7-Feb-12 21:43pm
This API is not suitable for what you want. Besides, such character is implemented using a separate font.
Rate this: bad
Please Sign up or sign in to vote.

Solution 2

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 on
2- Notify icon on tray area that pauses the whatever do to the process.

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 ..
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.
Rate this: bad
Please Sign up or sign in to vote.

Solution 3

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.
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)

    Print Answers RSS
Top Experts
Last 24hrsThis month
OriginalGriff 4,643
CHill60 2,970
Maciej Los 2,348
Jochen Arndt 1,900
ppolymorphe 1,765

Advertise | Privacy | Mobile
Web02 | 2.8.170518.1 | Last Updated 7 Feb 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100