Results 1 to 2 of 2

Thread: remove scrollbars from webbrowser

  1. #1

    Thread Starter
    PowerPoster
    Join Date
    Aug 2011
    Location
    B.C., Canada
    Posts
    2,887

    remove scrollbars from webbrowser

    when i add aa webbrowser control and set
    vb Code:
    1. ScrollBarsEnabled = False

    the scrollbars still appears when i load project
    i try adding it to a commandbutton and wait till webpage loads and then ScrollBarsEnabled = False but nothing works...

    i tried
    vb Code:
    1. WebBrowser1.Document.body.Scroll = "no"

    but this seems to only work in vb6

    is there a way to do this?

    my test url was www.google.com



    Edit:

    I am using Visual Studio 11 beta (if it matters)
    Last edited by Max187Boucher; Mar 30th, 2012 at 11:40 PM. Reason: forgot to mention version of visual studio

  2. #2
    Fanatic Member
    Join Date
    Mar 2009
    Posts
    739

    Re: remove scrollbars from webbrowser

    Are you putting the webbrowser on a UserControl or a form?

    I seem to remember that if I put a webbrowser control on a usercontrol in the IDE then it didn't behave as expected. Some properties, methods and events simply didn't get triggered. I also seem to remember that was a well known problem (to everyone but me at the time)

    Adding the WB control at runtime fixed it for me.

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