Click here to Skip to main content
11,790,613 members (49,750 online)
Rate this: bad
Please Sign up or sign in to vote.
See more: Windows C#4.0 form
Can We Handle Many Textboxes with help of One Label,mean If there are (Cell NO ,Email,Name)Validations and we want to handle all validations through one label.Have Any Simple Code.
Posted 16-Jan-13 21:19pm
Sergey Alexandrovich Kryukov at 17-Jan-13 3:28am
Not clear at all.

1 solution

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

Solution 1

You cannot do data entry on labels. You would only be accessing readonly data via labels.

To solve your problem, what you could do is display readonly data on a label and separate them via a delimiter character e.g. a comma. You could split the text via String.Split and then validate all data one by one.

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

  Print Answers RSS
0 OriginalGriff 1,154
1 Maciej Los 825
2 KrunalRohit 686
3 ppolymorphe 660
4 CPallini 621

Advertise | Privacy | Mobile
Web03 | 2.8.1509028.1 | Last Updated 17 Jan 2013
Copyright © CodeProject, 1999-2015
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