Results 1 to 17 of 17

Thread: [RESOLVED] block popups, disabe scrollbars, no right click in webbrowser component

Hybrid View

  1. #1
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: block popups, disabe scrollbars, no right click in webbrowser component

    Quote Originally Posted by RoYeti
    I`m a new one please help me more. I paste this code in form code but it give me some errors..
    What errors did it give and on what lines did the errors occur?

  2. #2

    Thread Starter
    Addicted Member RoYeti's Avatar
    Join Date
    Dec 2005
    Posts
    165

    Re:block popups, disabe scrollbars, no right click in webbrowser component

    Compile errors:

    Only comments may appear after End Sub, End function, or End proprerty

  3. #3
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: block popups, disabe scrollbars, no right click in webbrowser component

    Quote Originally Posted by RoYeti
    Compile errors:

    Only comments may appear after End Sub, End function, or End proprerty
    This tells me that you have pasted the code in the wrong place on the form.

    The API declare should be in the Form's declaration section along with the constants declarations.

    The calls should be placed in an event, such as a Form_Load event or a button's click event.

  4. #4

    Thread Starter
    Addicted Member RoYeti's Avatar
    Join Date
    Dec 2005
    Posts
    165

    Re: block popups, disabe scrollbars, no right click in webbrowser component

    i put in the Form_Load but say`s the same thing and select me the first 2 lines
    Code:
     Public Declare Function EnableScrollBar Lib "user32.dll" (ByVal hWnd As Long, _
    ByVal wSBflags As Long, ByVal wArrows As Long) As Long

  5. #5
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: block popups, disabe scrollbars, no right click in webbrowser component

    Quote Originally Posted by RoYeti
    i put in the Form_Load but say`s the same thing and select me the first 2 lines
    Code:
     Public Declare Function EnableScrollBar Lib "user32.dll" (ByVal hWnd As Long, _
    ByVal wSBflags As Long, ByVal wArrows As Long) As Long
    You don't put this in the Form_Load. This goes in the Form's declaration section.

    Open a code window. In the upper left hand corner will be a drop down box. Drop that down and locate "General" Click on General.

    This will take you to the declarations section. Put that code there.

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