Results 1 to 2 of 2

Thread: New Window With Webbrowser Control (shdocvw.dll)

  1. #1
    Guest

    Question

    I am making a program that has IE tabbed you know like netcaptor does.. Well I want it so when they right click on a link to have an added option saying "Open in new tab" like below "Open in new window" is that possible? Ive seen programs add things to that menu all the time.. I just dont know how. And if I added a menu how would I pass a value to my program to let it know that the menu was clicked. Could I just open another instance of my program going to that link and get the url through the shell command?

  2. #2
    Guest
    Here is the code I use to open a new window with Webbrowser.

    Code:
    Private Sub webbrowser1_NewWindow2(ppDisp As Object, Cancel As Boolean)
    Dim F As New form1
    Set ppDisp = F.webbrowser1.object
        Cancel = False
        DoEvents
        F.Show
    End Sub
    And take a look at the code Megatron posted. He only explained how to create submenus.
    http://forums.vb-world.net/showthrea...threadid=19851
    Hopefully he will reply with more code to help you.
    Probably have to subclass.


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