ım doing a c# security program this detect the desktop, any human musnt exit from program with use the windows types . what codes ı need

You must control the LWin and RWin key codes on the keypreview event on form.

Hope this helps

if you know can you write entire codes

See here for a keys enumeration.

Hope this helps

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.