如何更新或刷新或重新编码表单 [英] how to update or refresh or reloding form

查看:125
本文介绍了如何更新或刷新或重新编码表单的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





使用C#和SQL数据库。



i有一个表格,其中包含一些客户信息。其中我有一个客户名称的文本框。当我在此文本框中添加新客户名称时,文本框具有自动完成功能,客户名称保存在数据库中。现在,下次我想在自动完成功能中看到这个客户名而不关闭表单。



所以如何在c#中更新或刷新或重新编码表单。

Hi,

Using C# and SQL Database.

i have a Form which Contains some customer information. In which i have a textbox for customer name. the textbox have automcomplete function when i am adding a new customer name in this text box the customer name save in the database. Now, next time i want to see this customer name in autocomplete function without closing the form.

so how to update or refresh or reloding form in c#.

推荐答案

您是否只是尝试刷新文本框,以便在不打开新数据的情况下获取新数据?或者您想要刷新整个表单吗?



如果您只想刷新文本框,只需在添加,编辑或删除后重新绑定它。这应该使用更新的数据重新加载文本框...
Are you trying to refresh just the textbox so that it will go get the new data without opening it again? Or do you want to refresh the entire form?

If you want to just refresh the textbox, just rebind it after you add, edit, or delete. This should reload the textbox with the updated data...


这篇关于如何更新或刷新或重新编码表单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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