Click here to Skip to main content
15,890,690 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How I can verificate number from comboBox (G00K) with first four digits from texBox (G00K 2C0109 140314A 281 133)
If same go next. If not same show message

Thank´s
MMRZ
Posted
Comments
Kornfeld Eliyahu Peter 21-May-14 4:30am    
http://msdn.microsoft.com/en-us/library/baketfxw(v=vs.110).aspx
Rob Philpott 21-May-14 5:04am    
Please state your requirement more clearly. I don't understand that you want to do.
MMRZ 21-May-14 7:05am    
I have small app in C# : WinForm with comboBox, texBox and listBox
1.I choose number from comboBox e.g. G00K
2.next I read barcode via USB device to texBox e.g. G00K 2C0109 140314A 281 133
3.after reading the number is writting to listBox.
Working well.
Now I want to verify number before writtng to listBox. First four digits from reading barcode must be same like number I choosed in ComboBox.
Thank for reply

MMRZ

1 solution

You can make use of string.Compare and string.Substring methods here. You can find enough samples on how to use them on web.
 
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