Results 1 to 3 of 3

Thread: webbrowser control keypress of Ctrl + N

Threaded View

  1. #1

    Thread Starter
    Frenzied Member wpearsall's Avatar
    Join Date
    Feb 2002
    Location
    England / UK
    Posts
    1,065

    webbrowser control keypress of Ctrl + N

    OK: i have found this code in a post, whilst trying to find right click....

    now im guessin i need reference to the MS HTML Object etc...


    but it still errors.. what else do i need to add to the code? is the code complete or?

    VB Code:
    1. Private Sub webPage_DocumentComplete(ByVal pDisp As Object, URL As Variant)
    2. Set doc = webPage.Document
    3. End Sub
    4.  
    5. Private Sub doc_onmousedown()
    6. Dim eventObj As IHTMLEventObj
    7. Set eventObj = doc.parentWindow.event
    8. If eventObj.Button = rightButton Then
    9.     If doc.selection.Type = "Text" Then
    10.    
    11.     End If
    12.     PopupMenu mnuPage
    13. End If
    14. End Sub


    i also found mension in another post about doc_onkeypress

    but they didnt know the sections the functions had,

    now, these posts are like ages old. so, can any of you guys help me with either of these please....

    thanks
    Last edited by wpearsall; Apr 29th, 2003 at 05:48 PM.
    Wayne

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