Click here to Skip to main content
Rate this: bad
good
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
good
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.
  Permalink  
Comments
angelllll at 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 at 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 at 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?
SAKryukov at 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 at 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 at 7-Feb-12 12:55pm
   
yeah I guess this is a nogo then thanks everyone for the help
SAKryukov at 7-Feb-12 21:42pm
   
Agree! a 5. --SA
Rate this: bad
good
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 ...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 ! Wink | ;)
Password SPY++[^]
 
well let me know if this works and I'll be glad..
best wishes and good luck ..
  Permalink  
v2
Comments
Christian Graus at 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
good
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.
  Permalink  
Comments
Christian Graus at 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
Your Filters
Interested
Ignored
     
0 Guruprasad.K.Basavaraju 400
1 Shai Vashdi 334
2 Sergey Alexandrovich Kryukov 305
3 OriginalGriff 265
4 Peter Leow 171
0 Sergey Alexandrovich Kryukov 8,979
1 OriginalGriff 5,280
2 Peter Leow 4,010
3 Maciej Los 3,535
4 Abhinav S 3,263


Advertise | Privacy | Mobile
Web01 | 2.8.140415.2 | Last Updated 7 Feb 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Use
Layout: fixed | fluid