确实需要有关列表框C#问题的帮助.

确实需要有关列表框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.