CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Nov 2009
    Posts
    128

    Question Shortcut key in vb

    How do i assign a shortcut key to button in VB6.

    &Print ---> for "P" i.e (Alt+p)

    how do i do this using code.

    thanks in advance.

  2. #2
    Join Date
    Jul 2008
    Location
    WV
    Posts
    5,362

    Re: Shortcut key in vb

    Set the caption property of the button

    Code:
    Command1.Caption="&Print"
    Always use [code][/code] tags when posting code.

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

Featured