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.
我有一个列表框,旁边有一个组合框。如果我在列表框中选择一个项目,然后选择组合框,则列表框会闪烁。关于这可能是什么的任何想法?没有代码,这只发生在列表框失去焦点时。列表框没有双缓冲属性。
我真正能给你的唯一其他细节是我正在使用 WinForms。目前还没有写代码,listbox绑定什么,combobox dropdownstyle设置为DropDownList。我刚刚测试了一个新项目并得到了相同的结果。
我应该添加您需要将一个项目添加到属性窗口中的项目列表中,以便列表框复制它。
我认为,如果您在失去焦点时强制列表框重新绘制自身,则不会发生这种情况。当我像您一样设置项目时遇到闪烁问题,此代码修复了它
Private Sub ListBox1_Leave(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ListBox1.Leave ListBox1.Update() End Sub
高温高压