C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Communities   Interview   Jobs   Projects   Offshore Development    
Silverlight Tutorials | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Revenue Sharing |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...

New Feature: Community Sites: Create your own .NET community website and start earning from Google AdSense ! It's Free !






Changing Tab Index using Enter Key


Posted Date: 10 Sep 2008    Resource Type: Code Snippets    Category: VB.NET Syntax

Posted By: Abbas       Member Level: Silver
Rating:     Points: 10



This code will demonstrate how to change the tab Index of a textBox and Button using Enter Key which is previously done using Tab Key

This code makes use o SendKeys.Send method to send the Key stroke to the application


Private Sub TextBox1_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles TextBox2.KeyPress
If Keys.Enter Then
SendKeys.Send("{TAB}")
End If
End Sub


For the detailed code information Download the sample given nelow

By Abbas Electricwala

Attachments

  • Download Sample Application (20890-101531-SendKeys.rar)



  • Responses


    No responses found. Be the first to respond and make money from revenue sharing program.

    Feedbacks      
    Popular Tags   What are tags ?   Search Tags  
    Changing TabIndex Using Enter Key  .  Changing Tab Index using Enter Key  .  

    Post Feedback


    This is a strictly moderated forum. Only approved messages will appear in the site. Please use 'Spell Check' in Google toolbar before you submit.
    You must Sign In to post a response.
    Next Resource: Hiding and showing folders
    Previous Resource: Reading CSV file and Displaying data in a Datagrid.
    Return to Discussion Resource Index
    Post New Resource
    Category: VB.NET Syntax


    Post resources and earn money!
     
    Related Resources



    dotNet Slackers   BizTalk Adaptors    Web Design

    doors in nj

    Contact Us    Privacy Policy    Terms Of Use