Click here to Skip to main content
15,890,579 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
i have a window form there are two fields state code and ppo no . i want to generate a code combining of both fields that's show in textbox
Posted
Updated 2-Jan-14 22:08pm
v2

1 solution

Well, the simplest solution is string concatenation, assuming the two 'fields' are also text boxes:
VB
myTextBox.Text = stateCode.Text & ppoNo.Text
 
Share this answer
 
Comments
Manfred Rudolf Bihy 3-Jan-14 4:11am    
My 5!
String.Format("{0}-{1}", stateCode.Text, ppoNo.Text) would also be an option.
CPallini 3-Jan-14 4:23am    
Thank you.
That alternative is a hyphen more than simplest :-)
Maciej Los 3-Jan-14 4:40am    
Manfred, my virtual 5!
Carlo, my real 5!
CPallini 3-Jan-14 4:41am    
Thank you. :-)
Manfred Rudolf Bihy 3-Jan-14 4:43am    
:)

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