Is it possible to prevent any unauthorised user to access code or application in desktop application like any web application? Thanks in advance.
If you want to protect your sourcecode, I would use an obfuscator like the free Eazfuscator.NET
http://www.gapotchenko.com/eazfuscator.net
UPDATE: no longer free since June 29, 2012