Wrox Programmer Forums
|
VB How-To Ask your "How do I do this with VB?" questions in this forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB How-To section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 9th, 2004, 03:06 PM
Authorized User
 
Join Date: Aug 2003
Posts: 22
Thanks: 0
Thanked 0 Times in 0 Posts
Default Force a Key Press?

Is there a way to force Visual Basic .net to perform a certain key press? What I want to do is automatically invoke a "tab" press after the user has clicked a button. I've looked around online and can't find anything. Any help is appreciated!

 
Old January 9th, 2004, 03:58 PM
Authorized User
 
Join Date: Aug 2003
Posts: 22
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Eh, finally found it. For anyone who cares:

Imports windows.system.forms.sendkeys

'in form
Send("{TAB}")

 
Old January 9th, 2004, 03:59 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 627
Thanks: 0
Thanked 0 Times in 0 Posts
Default

VB: SendKeys "{TAB}"
.NET: look at the SendKeys class
Marco





Similar Threads
Thread Thread Starter Forum Replies Last Post
Press Print Screen Key Using JavaScript sundar53 .NET Framework 2.0 0 November 4th, 2007 08:48 AM
Simulating a key press with c++ Bourne C++ Programming 2 April 13th, 2007 02:03 PM
Key press problem diegoblin Beginning VB 6 3 October 5th, 2006 02:10 PM
TAB KEY working together KEY PRESS event thomaz C# 4 August 20th, 2006 02:47 PM
key press event in webforms agnihotrived ADO.NET 4 March 19th, 2005 03:22 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.