Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在Compact Framework 2.0 SP1中开发了一个Windows Mobile应用程序。
如何使用调用使标签不可见?
谢谢!
您只是想更改标签的 Visible 属性?一般来说,它是这样的:
private void SetVisibility(Control target, bool visible) { if (target.InvokeRequired) { target.Invoke(new EventHandler( delegate { target.Visible = visible; })); } else { target.Visible = visible; } }