Results 1 to 3 of 3

Thread: webbrowser control

  1. #1

    Thread Starter
    New Member
    Join Date
    Nov 2000
    Posts
    3

    Red face

    Hi

    using webbrowser1 control and i need a few things i cannot work out,

    A) print the current page without print popup box
    B) if a page trys to open a new window the window is loaded into the same window,

    this is for a standalone kiosk application, if anyone can help would be grateful


  2. #2
    Fanatic Member Kaverin's Avatar
    Join Date
    Oct 2000
    Posts
    930
    to print without a dialog:
    Code:
    WebBrowser1.ExecWB OLECMDID_PRINT, OLECMDEXECOPT_DONTPROMPTUSER
    I'm baaaack...
    VB5 Professional Edition, VC++ 6
    Using a 1 gHz Thunderbird, 256 mb RAM, 40 gb HD system with Win98se

    I feel special because I finally figured out how to loop midis: Post link
    I'm a fanatic too

  3. #3
    Guest
    When a user opens a new window, to create another instance of your own program instead of IE:

    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

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