Results 1 to 8 of 8

Thread: Internet Control

  1. #1

    Thread Starter
    Addicted Member hyousuf2's Avatar
    Join Date
    Dec 2004
    Location
    Dublin
    Posts
    226

    Internet Control

    i have an internet control on my form n i want to disable the scroll bar property of internet control n also disable the right click on that internet control

  2. #2
    I'm about to be a PowerPoster! Joacim Andersson's Avatar
    Join Date
    Jan 1999
    Location
    Sweden
    Posts
    14,649

    Re: Internet Control

    I don't know about the scrollbars but you can disable the popup menu by using the WBCustomizer.dll that expose the IDocHostUIHandler for you. You can download it from here:
    http://support.microsoft.com/kb/q183235/

  3. #3
    I'm about to be a PowerPoster! Joacim Andersson's Avatar
    Join Date
    Jan 1999
    Location
    Sweden
    Posts
    14,649

    Re: Internet Control

    Quote Originally Posted by dglienna
    Just check for a right-mousebutton in the mouseup subroutine to see about the right click.
    That's not available for the WebBrowser control so you need the WBCustomizer control.

  4. #4
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Re: Internet Control

    Oops. Thats what I get for not trying it first. Thanks. Consider it gone.
    EDIT: Actuallly, I didn't read your post clearly enough. I though your link took care of the scrollbars, and I was going to add the mouseup. Its late, and I an starting to make mistakes.
    Last edited by dglienna; Feb 23rd, 2005 at 02:58 AM.

  5. #5

    Thread Starter
    Addicted Member hyousuf2's Avatar
    Join Date
    Dec 2004
    Location
    Dublin
    Posts
    226

    Re: Internet Control

    well so far so good for the right click but how do i disable the scroll bar of intenret control

  6. #6
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Re: Internet Control

    You mean it worked? Hmmm. I deleted the post because I *assumed* that it didn't work. Tell me how you did it, please? I thought JA had a solution for the scrollbars. I couldn't find anything that allowed it. Maybe you could use a SendMessasge to it, but I'm not sure about that

  7. #7
    I'm about to be a PowerPoster! Joacim Andersson's Avatar
    Join Date
    Jan 1999
    Location
    Sweden
    Posts
    14,649

    Re: Internet Control

    Quote Originally Posted by dglienna
    You mean it worked? Hmmm. I deleted the post because I *assumed* that it didn't work. Tell me how you did it, please? I thought JA had a solution for the scrollbars. I couldn't find anything that allowed it. Maybe you could use a SendMessasge to it, but I'm not sure about that
    He obviously downloaded and used the WBCustomizer.dll which allows you to disable the pop-up menu for a WebBrowser control. It also allows you to disable some of the hotkeys (or all of them) associated with the WebBrowser control.

    I did not have a solution for the scrollbars. I had a solution for the popup menu.

  8. #8
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Re: Internet Control

    OK. I told you that I wasn't having a good night, and still hadn't tried it, so I had to ask.

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