BP Forums
How do I implement keyboard shortcuts into my applications? - Printable Version

+- BP Forums (https://bpforums.info)
+-- Forum: Archived Forums (https://bpforums.info/forumdisplay.php?fid=55)
+--- Forum: Archived Forums (https://bpforums.info/forumdisplay.php?fid=56)
+---- Forum: VB.NET (Visual Basic 2010/2008) (https://bpforums.info/forumdisplay.php?fid=8)
+----- Forum: Programming Help (https://bpforums.info/forumdisplay.php?fid=9)
+----- Thread: How do I implement keyboard shortcuts into my applications? (/showthread.php?tid=624)



How do I implement keyboard shortcuts into my applications? - Macatone - 09-01-2012

I would like to know how to implement keyboard shortcuts into Visual Studio applications. For example, ctrl+s would save a file, ctrl+o would open a file, etc.


Re: How do I implement keyboard shortcuts into my applicatio - brandonio21 - 09-01-2012

Well, you're going to want to use the Form.KeyPressed event. More information on doing this can be found in this tutorial:
<!-- m --><a class="postlink" href="http://www.youtube.com/watch?v=g-I3PUOQUIc&feature=plcp">http://www.youtube.com/watch?v=g-I3PUOQUIc&feature=plcp</a><!-- m -->


Re: How do I implement keyboard shortcuts into my applicatio - Macatone - 09-01-2012

Thanks! I tried searching through your tutorials before I posted this, but I guess that I did not catch this one. Thanks again!


Re: How do I implement keyboard shortcuts into my applicatio - brandonio21 - 09-01-2012

No problem!