Click here to Skip to main content
15,910,358 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I have user control form in windows apllication.on tha page combobox contain some templates from database. & one button for new template creation when click that button opendialog box for create new template.save that new template to DB & close. then on user control page combobox count that updated value but not display in combobox. how to solve this bug??
Posted
Comments
BulletVictim 13-Sep-13 3:36am    
Please show your code for button that you use to add the "template" to the combobox?
BillWoodruff 13-Sep-13 4:11am    
You need to be more specific: exactly what is in the UserControl, and what is in the Form ? Please show your code for excatly what happens after the template is shown: at the place it is doing something to update the ComboBox.
Adarsh chauhan 13-Sep-13 5:41am    
I agree with BulletVictim... you need to share your code so that it would be easy for us to help you..

1 solution

1. After click button reload from database
2.After click just add :
combobox.items.add("New template")
 
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