BP Forums
How to Make button performs keyboard Button Functions? - 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)
+---- Thread: How to Make button performs keyboard Button Functions? (/showthread.php?tid=534)



How to Make button performs keyboard Button Functions? - Himansh - 05-18-2012

HI Everybody

I am creating an Application in Visual basic and have put a Button on it
i want that when the button is clicked then it performs the function (which is performed when we press the "END" Key on our Keyboard) without actually
pressing "End" Key.

Any Kind of Help Will be a Booty for ME.

Thanks in Advance!!!!!!!!!!!!!!.


Re: How to Make button performs keyboard Button Functions? - brandonio21 - 09-15-2012

Wow, I hate to revive such an old thread, but no proper answer was ever given!

I think what you are looking for is use of the SendKeys functionality. Here is a code snippet.
[code2=vbnet]SendKeys.Send("{END}")[/code2]