Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27248

How can I automatically return focus to the last control that was focused

$
0
0
I have a picturebox. After scrolling with a keypress, I want the focus to go back to the picturebox if my mouse is there. How can I do this? The reason is, that I use my mousewheel to scroll up or down and if I use the keyboard to override it, then it disables the mouswheel unless I move my mouse out and in again.

Viewing all articles
Browse latest Browse all 27248

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>