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.
在更改可见性元素时,我在 winform 中遇到了焦点问题。
我正在开发杂志阅读器应用程序,在 winform 中我有位图和两个箭头,它们正在改变杂志的网站。但是当焦点改变时,位图会开始一个锐化线程,并且由于箭头仅在鼠标移动时可见,我正在改变它们的可见性。这就是我的问题,当我改变它们的可见性时,我会从位图上失去焦点。
那么请问,是否可以在不改变焦点的情况下改变可见性?
当您使用Control.Focus将焦点明显地设置在位图上时,还将 2 个箭头的属性TabStop设置为 false。