如何在运行时显示组合框中的更新值? [英] how to show updated value in combobox at runtime?

查看:65
本文介绍了如何在运行时显示组合框中的更新值?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在windows apllication.on页面中有用户控制表单组合框包含来自数据库的一些模板。 &单击该按钮的一个按钮,用于创建新模板,将新模板发送到DB并关闭。然后在用户控制页面组合框计数更新值但不显示在组合框中。如何解决这个bug?

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??

推荐答案

1。点击按钮从数据库重新加载

2.点击后再添加:

combobox.items.add(新模板)
1. After click button reload from database
2.After click just add :
combobox.items.add("New template")


这篇关于如何在运行时显示组合框中的更新值?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆