|
-
Dec 19th, 2005, 12:08 PM
#1
Re: block popups, disabe scrollbars, no right click in webbrowser component
 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.
-
Dec 19th, 2005, 12:17 PM
#2
Thread Starter
Addicted Member
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
-
Dec 19th, 2005, 12:19 PM
#3
Re: block popups, disabe scrollbars, no right click in webbrowser component
 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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|