Click here to Skip to main content
16,019,614 members
Please Sign up or sign in to vote.
2.65/5 (3 votes)
See more:
I'm developing windows application.In that application i want to develop a signature option.In that option user has to sign with the help of mouse.Later i want to display that signature in textbox.
Posted
Comments
Sergey Alexandrovich Kryukov 19-Jan-15 0:27am    
Why? Do you think such signature can be a serious proof? (But yes, such things are used in some systems.)
Didn't you think of using the digital signature instead? (No, graphical signature isn't a digital signature.)
Anyway, what have you tried so far?
—SA

Please see my comment to the question. Overall, this post makes very little sense.
But I can also give you my formal answer: your "signature" is not text, so it cannot be shown TextBox, which is a control designed to show only text data.

By the way, asking any question about TextBox does not mean anything certain. I would ask you: "TextBox? Which one? Full type name, please". Always provide a full type name; there are different unrelated types with simple name "TextBox", in different UI libraries.

—SA
 
Share this answer
 
Comments
Divakard3 19-Jan-15 1:22am    
Hey can you help about digital signature.
Sergey Alexandrovich Kryukov 19-Jan-15 1:56am    
Please see Solution 2.
—SA
Divakard3 19-Jan-15 4:26am    
But i'm doing the small project it no need to give encrypt and decrypt,because when user gives the input and generate in to the pdf format.So i have a signature option and just generate the signature into the pdf file.
Sergey Alexandrovich Kryukov 19-Jan-15 12:36pm    
Please, no "ifs" no "buts". First of all, who told you about "encryption"? You simply did not properly read my answer. But, why did you ask me "Hey can you help about digital signature"? I spent time to answer. I could have read my explanation that your graphic signature is not digital signature. You could read about it yourself. So why asking and wasting my time?!
—SA
Divakard3 asked:
Hey can you help about digital signature.
First of all, you need to understand what it does:
http://en.wikipedia.org/wiki/Digital_signature[^].

The idea is based on public-key cryptography. Explaining it would take considerable time and takes some effort, so better read it and think about it: http://en.wikipedia.org/wiki/Public-key_cryptography[^].

Basically, this it the inversion of encryption: with public key, anyone can read the document but cannot fake it, as writing would require a private key which is not passed anywhere. The protection scheme, however, need more sophistication compared to the encryption, because you should also protect from the cases when the whole thing is forged, key pair and the document, so one also should be able to check that the public key is original. One of the ways to overcome this problem is the use of identity certificates. Read about it in the article referenced above, see also:
http://en.wikipedia.org/wiki/Public_key_certificate[^],
http://en.wikipedia.org/wiki/Certificate_authority[^].

First of all, you need to understand the logic behind all that. Now, what about implementations?
Everything is already provided by .NET BCL: http://msdn.microsoft.com/en-us/library/system.security.cryptography.asymmetricalgorithm%28v=vs.110%29.aspx[^].

—SA
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900