将一个表格切换到另一个表格时出 [英] Problem while switching one form to other
问题描述
亲爱的先生,我正在使用VB.net +以太网进行通信。将一个表单切换到其他表单时遇到问题。加载另一个表单花费了太多时间。以下是我在Form load事件中调用的函数。 1)我通过TCP / IP从硬件读取价值
。 2)然后我将这些值存储在Access数据库中(因为我需要这些值进行操作)。 3)然后从数据库中读取值。表单加载需要耗费时间吗?有快速表单加载的其他选项吗?请帮助
me。
最好的问候,Mrudula Choudhhari
Dear sir, I am using VB.net + ethernet for communication. I have got problem while switching One form to other form. Loading the another form is taking too much time. Following are the function that i am calling in Form load event. 1) I am reading value from Hardware through TCP/IP. 2)Then i am storing those values in Access Database (as i need those values for manipulations). 3)Then reading values from Database. Is this time consuming for form load? Is there any other option to quick form load? Please help me.
Best Regards, Mrudula Choudhhari
推荐答案
在表单加载事件处理程序中启动工人线程,调用1).. 2).. 3)..
in the Form load event handler start the worker thread, which invoke 1) .. 2) .. 3) ..
这篇关于将一个表格切换到另一个表格时出的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!