Click here to Skip to main content
15,921,793 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hello im using a combo box where it's item came form the database I've already solve that but how about if the item I want to be display in my combo box are from three textbox save to database how I am going to make it as one in the combo box? I've just use databing ... datasource and data member for binding the data in my combo box..

I have 2 forms form1 and form2 in form one I have 3 textbox txtFname, txtMname, txtLname.

in form 2 I have a combo box and I want that those 3 text in may 3 textbox will be 1 item in my combo box.


Example form1....

txtFname.text = "xiro"
txtMname.text = "crack"
txtLastname.text = "Help"


in form 2 I should see those 3 items in my combo box as one item

combobox
item1 = xiro crack help ......... and so on

is this possible or what any idea please.
Posted
Updated 18-Feb-10 16:13pm
v2

I really cant figure out what you exactly meant.

Please clarify :
xiroH4ck3r wrote:
about if the item I want to be display in my combo box are from three textbox save to database


Thanks
 
Share this answer
 
This is very simple. You just combine the three fields, if they are coming from the DB, you write SQL to combine the three fields to be one string.

Also - I deleted your reply. The 'answer' button is ( surprisingly ) for answers, not for comments. I edited your post to include your comments.
 
Share this answer
 
v2
how to make that sql statement please give example please ehhehe


sample fragment code please
 
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