Click here to Skip to main content
15,890,123 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How to populate the value of textbox using combobox in vb.net?
Posted
Updated 17-Oct-10 21:43pm
v3
Comments
Baji Jabbar 18-Oct-10 2:10am    
Can you tell in detail what are you looking for? please explain what have you done
Dalek Dave 18-Oct-10 3:38am    
Minor Edit for spelling.

from where are you getting the values like city,company name etc..
the problem might be coming from the source of these info..

any way try this: textbox1.text=myPhone.toString()

the question is still unclear! please elaborate!
 
Share this answer
 
actually i have client id....as primaty key..
when u select an id from combobox......the respected values from combobox r geting displayed like state
city
company name
n some values are in textbox..which are not geting displayed like phone no,.........
 
Share this answer
 
Comments
Dalek Dave 18-Oct-10 3:39am    
Don't use txtspk
Have you tried Textbox1.Text="Here is Some Text"
 
Share this answer
 
combobox1_onselectedChanged()
{
textbox1.text = combobox1.selecteditem.tostring();
}
 
Share this answer
 
see i have a tablecalled client in my oracle databse...
oki...i hv some combobox in my form.lke companyname,city,state oki..dese are on form..so when a user selects a clientid ..automatically values are filled in commbobox...but nt for textbox....fields y??
 
Share this answer
 
Comments
Tarun.K.S 20-Oct-10 4:43am    
oh i think the problem might be because u may not have data binding for the textbox to fill data..please double check it !

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