Results 1 to 6 of 6

Thread: [2005] Shortcut in webbrowser.

  1. #1

    Thread Starter
    Hyperactive Member Ivenesco's Avatar
    Join Date
    Sep 2007
    Location
    Poland, Lublin
    Posts
    325

    [2005] Shortcut in webbrowser.

    I have form, where only component on it is webbrowser control. How to add one own shortcut to it (to raise another form)? It needs keys hook, or there is other way?

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: [2005] Shortcut in webbrowser.

    What exactly are you trying to achieve? You want to add a link to the page in your WebBrowser control to open another form in your app? Can you explain a bit more?
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  3. #3

    Thread Starter
    Hyperactive Member Ivenesco's Avatar
    Join Date
    Sep 2007
    Location
    Poland, Lublin
    Posts
    325

    Re: [2005] Shortcut in webbrowser.

    I want to invoke sub. when user use shortcut. For eg-> "crtl + o" should invoke sub which open next form.

  4. #4
    PowerPoster Jenner's Avatar
    Join Date
    Jan 2008
    Location
    Mentor, OH
    Posts
    3,712

    Re: [2005] Shortcut in webbrowser.

    Ok, you want to catch a keyboard input from the user from anywhere within your program, as long as your program has focus. Hmm... not a bad question.

    I think you just do it through the Menu-bar control. As long as the form has a Menu-bar, you can assign keyboard shortcuts to items via the properties.
    Last edited by Jenner; Feb 13th, 2008 at 10:01 AM.

  5. #5

    Thread Starter
    Hyperactive Member Ivenesco's Avatar
    Join Date
    Sep 2007
    Location
    Poland, Lublin
    Posts
    325

    Re: [2005] Shortcut in webbrowser.

    But the only one component is webbrowser There can't be any other controls.

  6. #6
    PowerPoster Jenner's Avatar
    Join Date
    Jan 2008
    Location
    Mentor, OH
    Posts
    3,712

    Re: [2005] Shortcut in webbrowser.

    Set Visibility to False

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