How do we make a keylogger in c#?

Why do you need to?

i want to run the keylogger on my pc and make a log of all the keystrokes that i type.. i am using a program at the movement to do that.. but if i can write my own.. that would be cool..

Most people will consider this type of request of malicious intention and likely will not help. Why would you want to record all your keystrokes for anything productive?

Why would you want to record all your keystrokes for anything productive?

Keep an eye on what your teenage children are up to in chat rooms?

:)

Dear hollystyles;

Search on the Windows API that got the key pressed, that's the half of your question way.

the next half is to make use of it.

I recommend a site called apiviewer.com I think it may help you alot in which method in which windows APIs to use.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.