如何刷新我的GUI应用程序 [英] How to refresh my GUI Application

查看:80
本文介绍了如何刷新我的GUI应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好。

如何刷新我的GUI应用程序?

示例:我想在数据库中插入记录时刷新我的组合框数据,假设我有我的GUI应用程序中的许多窗口,我想从第一个窗口添加一个记录,另一个窗口中的组合框应该读取更新数据

Hello everyone
How can i refresh my GUI application?
example : i want to refresh my combobox data when i insert a record in database, suppose that i have many windows in my GUI application and i want to add a record from the first window, and the combobox in the other window should read the update data

推荐答案

数据源控件保持绑定,所以尝试将组合框的数据源设置为 null 并再次重新设置数据源...



希望有帮助!

SS
The datasource for a control remains binded so try setting the datasource for the combobox to null and re-setting the datasource again...

Hope that helps!
SS


这篇关于如何刷新我的GUI应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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