Results 1 to 22 of 22

Thread: [RESOLVED] VB6 Form and PDF

Hybrid View

  1. #1
    Only Slightly Obsessive jemidiah's Avatar
    Join Date
    Apr 2002
    Posts
    2,431

    Re: VB6 Form and PDF

    Just add code to the function that fires when the key is pressed. In the article you linked, that would be in the IsHooked function.
    The time you enjoy wasting is not wasted time.
    Bertrand Russell

    <- Remember to rate posts you find helpful.

  2. #2

    Thread Starter
    New Member
    Join Date
    Feb 2011
    Posts
    14

    Re: VB6 Form and PDF

    I tried putting some function on it, it works. But if I put
    This Code:
    1. WebBrowser1.Navigate "some pdf file"

    It gives me an error message.
    See attached photo. Sorry but it's in Japanese. Maybe those error numbers mean something?

    They would translate to something like:

    'Navigate' Method Failed: 'IWebBrowser2' objects
    Attached Images Attached Images  

  3. #3

    Thread Starter
    New Member
    Join Date
    Feb 2011
    Posts
    14

    Re: VB6 Form and PDF

    it's working now!!

    I just placed

    This Code:
    1. If WebBrowser1.Busy = False Then
    2. WebBrowser1.Navigate "some pdf file on the lan"
    3. End If


    Thanks to gigel_hifi and especially to jemidiah

  4. #4

    Thread Starter
    New Member
    Join Date
    Feb 2011
    Posts
    14

    Re: VB6 Form and PDF

    Ooops now I have a new problem.

    The keyboard hook is working fine but when I press F1, it unloads the form containing the keyboard hook but it seems the F1 command is passed over to another form and closes it too.

    All forms exit through F1.

    Is there a way to clear the keyboard buffer used by the keyboard hook?

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