Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C#3.5
How can I add a serial number without using the serialnumber template... I don't like it because it's too weak... and anybody can crack it.... I cannot beleive that Microsoft can make a same joke.
how can I define that the serial number is single like: 1234AfDRs12?
is that possible??????????????????
 
this is done by microsoft....................
For example, setting the SerialNumberTemplate property to "<### - %%%%>" creates two text boxes separated by a dash surrounded by spaces. Validation for the first box (###) simply verifies that the user has entered three digits. The second box (%%%%) is validated by an algorithm that adds the digits together and divides the sum by 7. If the remainder is 0, validation succeeds; otherwise, it fails.
Posted 30-Aug-10 23:23pm
suzeets1.1K
Edited 30-Aug-10 23:47pm
v2
Comments
Christian Graus at 31-Aug-10 5:30am
   
IS this a question and an answer ? What is going on here ?
KunalChowdhury at 31-Aug-10 5:47am
   
Reason for update: removed the code formatting from the text.
Christian Graus at 31-Aug-10 5:49am
   
If you read it, the formatted section looks like it was a question, and the rest is an answer. Goodness knows why.
KunalChowdhury at 31-Aug-10 5:52am
   
Yes, he answered his question himself. But, maybe he was looking for some controls to implement such thing.
Sandeep Mewara at 31-Aug-10 14:19pm
   
Reason for my vote of 1
Did you asked anything here? Were you expecting something form us?

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

You can do this using the MaskEdit TextBox. You can find one of such example here: ^]. Search over net & you will find a huge nos. of examples.
  Permalink  
Comments
suzeets at 31-Aug-10 6:08am
   
thanx buddy..........

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

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 550
1 mhegazy94 460
2 Ravi Bhavnani 230
3 Kornfeld Eliyahu Peter 185
4 Shemeemsha RA 160
0 Sergey Alexandrovich Kryukov 7,295
1 OriginalGriff 6,841
2 CPallini 5,420
3 George Jonsson 3,654
4 Gihan Liyanage 2,797


Advertise | Privacy | Mobile
Web04 | 2.8.140922.1 | Last Updated 31 Aug 2010
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100