CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    May 2002
    Location
    Minneapolis
    Posts
    98

    [VB] Click event on WebBrowser control

    Hello all I am using the webBrowser control on an vb 6 form and want to have a click event... basically if they click on the WebBrowser1 control it will bring the same page up in a real web browser.

    regards,
    Jay

  2. #2
    Join Date
    Jul 2000
    Location
    Milano, Italy
    Posts
    7,726

    You sure you want the click?

    You sure you want the click? Or would you call "the real browser" when the
    .LocationURL of your webBrowser control changes?

    If you really want the click, I have prepared the following zip project for you
    (Note: tried first with subclassing the control, but Hwnd property raised an error,
    thus I was not able to get it -even if I could have tried with some api - ence I
    adapted a code I have wrote to get click from everywhere...)
    Attached Files Attached Files
    ...at present time, using mainly Net 4.0, Vs 2010



    Special thanks to Lothar "the Great" Haensler, Chris Eastwood , dr_Michael, ClearCode, Iouri and
    all the other wonderful people who made and make Codeguru a great place.
    Come back soon, you Gurus.

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

Featured