Results 1 to 2 of 2

Thread: Design-time Shortcuts

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Jun 2001
    Location
    USA
    Posts
    1,026

    Design-time Shortcuts

    Is there any way to add shortcuts to the design-time VB interface?


    For instance, I would like to be able to add a textbox to my form by pressing Ctrl + Shift + t or something of that nature...


    Can this be done?

    Thankx,

    Squirrelly1
    Now happily married and still crankin' away at the keyboard. Life is grand for a coder, no?

  2. #2
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    Set KeyPreview of the form to True . Then use this code .
    VB Code:
    1. Private Sub Form1_KeyUp(ByVal sender As Object, ByVal e As
    2. System.Windows.Forms.KeyEventArgs) Handles MyBase.KeyUp
    3.  
    4.         If e.Shift AndAlso e.Control AndAlso e.KeyCode = Keys.T Then
    5.             'load control creator at runtime
    6.         End If
    7.  
    8. End Sub

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width