确实需要有关列表框C#问题的帮助. [英] Really need help in listbox C# problems.

查看:105
本文介绍了确实需要有关列表框C#问题的帮助.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

基于窗口的应用程序..这真的让我很烦:

来自FormA的-listboxA必须在formB中的listboxB中传输

前提:ListboxA将每2秒更新一次,而ListBoxb应每2秒具有相同的值.

-listboxB中的每个项目都应该能够检索DB中的数据.

Window based application..this really bug me:

-listboxA from FormA has to be transfered in listboxB in formB

precondition : ListboxA will be updated every 2 second and ListBoxb shall have da same value each 2 second.

-each item in listboxB should able to retrieve the data in DB.

推荐答案

如果FormB是FormA中的成员变量,则可以很容易地调用方法通过值.其余的,您只需要一个计时器即可每2秒触发一次.很简单.
If FormB is a member variable in FormA, then it''s easy to call a method that passes values through. For the rest, you just need a timer to fire every 2 seconds. Easy.


这篇关于确实需要有关列表框C#问题的帮助.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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