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

VS 2010 Prevent command button being selected?

$
0
0
Hi there,

I have a form that runs code on a arrow keys keydown event so that a label is moved around a container. This has been working perfectly until I added my first command button. Now, the arrow keys simply serve to select the command button, and my code doesn't run any more.

The only workaround I've found for this so far is disabling the command button, but obviously, this isn't very practical, so how can I stop this happening?

Thanks.

Viewing all articles
Browse latest Browse all 27186

Trending Articles



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