-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit cf59ff2
Showing
6 changed files
with
243 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
# VB6 source files (show diff + keep CRLF in zip download) | ||
|
||
*.bas working-tree-encoding=CP1252 text eol=crlf linguist-language=vb6 | ||
*.cls working-tree-encoding=CP1252 text eol=crlf linguist-language=vb6 | ||
*.ctl working-tree-encoding=CP1252 text eol=crlf linguist-language=vb6 | ||
*.dob working-tree-encoding=CP1252 text eol=crlf linguist-language=vb6 | ||
*.dsr working-tree-encoding=CP1252 text eol=crlf linguist-language=vb6 | ||
*.frm working-tree-encoding=CP1252 text eol=crlf linguist-language=vb6 | ||
*.pag working-tree-encoding=CP1252 text eol=crlf linguist-language=vb6 | ||
*.vbg working-tree-encoding=CP1252 text eol=crlf | ||
*.vbl working-tree-encoding=CP1252 text eol=crlf | ||
*.vbp working-tree-encoding=CP1252 text eol=crlf | ||
*.vbr working-tree-encoding=CP1252 text eol=crlf | ||
*.vbw working-tree-encoding=CP1252 text eol=crlf | ||
|
||
# Other source files (show diff + LF only in zip download) | ||
|
||
*.asm text | ||
*.asp text | ||
*.bat text | ||
*.c text | ||
*.cpp text | ||
*.dsp text | ||
*.dsw text | ||
*.h text | ||
*.idl text | ||
*.java text | ||
*.js text | ||
*.manifest text | ||
*.odl text | ||
*.php text | ||
*.php3 text | ||
*.rc text | ||
*.sln text | ||
*.sql text | ||
*.vb text | ||
*.vbs text | ||
|
||
# Binary | ||
|
||
*.res binary | ||
*.frx binary | ||
*.ctx binary | ||
*.dsx binary | ||
*.exe binary | ||
*.dll binary | ||
*.ocx binary | ||
*.cmp binary | ||
*.pdb binary | ||
*.tlb binary | ||
*.xls binary | ||
*.doc binary | ||
*.ppt binary | ||
*.xlsx binary | ||
*.docx binary | ||
*.pptx binary | ||
*.chm binary | ||
*.hlp binary | ||
*.jpg binary | ||
*.png binary | ||
*.bmp binary | ||
*.gif binary | ||
*.ico binary | ||
*.zip binary | ||
*.cab binary | ||
*.7z binary | ||
*.gz binary | ||
|
||
# Text files but keep as binary (no diff) | ||
|
||
# *.cfg text | ||
# *.conf text | ||
# *.csi text | ||
# *.css text | ||
# *.csv text | ||
# *.def text | ||
# *.htm text | ||
# *.html text | ||
# *.inf text | ||
# *.ini text | ||
# *.log text | ||
# *.reg text | ||
# *.rtf text | ||
# *.txt text | ||
# *.url text | ||
# *.xml text |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
*.scc | ||
*.dca | ||
*.oca | ||
*.obj | ||
vb*.tmp | ||
@PSC* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
VERSION 5.00 | ||
Object = "{EAB22AC0-30C1-11CF-A7EB-0000C05BAE0B}#1.1#0"; "shdocvw.dll" | ||
Begin VB.Form Form1 | ||
Caption = "Form1" | ||
ClientHeight = 6765 | ||
ClientLeft = 60 | ||
ClientTop = 450 | ||
ClientWidth = 9825 | ||
LinkTopic = "Form1" | ||
ScaleHeight = 6765 | ||
ScaleWidth = 9825 | ||
StartUpPosition = 3 'Windows Default | ||
WindowState = 2 'Maximized | ||
Begin VB.Timer Timer1 | ||
Enabled = 0 'False | ||
Interval = 5 | ||
Left = 4320 | ||
Top = 3960 | ||
End | ||
Begin SHDocVwCtl.WebBrowser WebBrowser1 | ||
Height = 5535 | ||
Left = 240 | ||
TabIndex = 0 | ||
Top = 360 | ||
Width = 9135 | ||
ExtentX = 16113 | ||
ExtentY = 9763 | ||
ViewMode = 0 | ||
Offline = 0 | ||
Silent = 0 | ||
RegisterAsBrowser= 0 | ||
RegisterAsDropTarget= 1 | ||
AutoArrange = 0 'False | ||
NoClientEdge = 0 'False | ||
AlignLeft = 0 'False | ||
NoWebView = 0 'False | ||
HideFileNames = 0 'False | ||
SingleClick = 0 'False | ||
SingleSelection = 0 'False | ||
NoFolders = 0 'False | ||
Transparent = 0 'False | ||
ViewID = "{0057D0E0-3573-11CF-AE69-08002B2E1262}" | ||
Location = "" | ||
End | ||
End | ||
Attribute VB_Name = "Form1" | ||
Attribute VB_GlobalNameSpace = False | ||
Attribute VB_Creatable = False | ||
Attribute VB_PredeclaredId = True | ||
Attribute VB_Exposed = False | ||
|
||
|
||
|
||
Private Sub Form_Load() | ||
Timer1.Enabled = True | ||
|
||
'WebBrowser1.Navigate "http://www.avril-lavigne.ws/" | ||
WebBrowser1.Navigate "http://www.abcnews.com" | ||
|
||
|
||
End Sub | ||
|
||
Private Sub Timer1_Timer() | ||
WebBrowser1.Silent = True | ||
Timer1.Enabled = False | ||
End Sub | ||
|
||
|
||
Private Sub WebBrowser1_NewWindow2(ppDisp As Object, Cancel As Boolean) | ||
If CtrlKey <> True Then | ||
Cancel = True | ||
End If | ||
|
||
End Sub | ||
|
||
Function CtrlKey() As Boolean | ||
CtrlKey = (GetAsyncKeyState(vbKeyControl) And &H8000) | ||
End Function | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
Attribute VB_Name = "Module1" | ||
Public Declare Function GetAsyncKeyState Lib "user32" (ByVal vKey As Long) As Integer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
Type=Exe | ||
Form=Form1.frm | ||
Reference=*\G{00020430-0000-0000-C000-000000000046}#2.0#0#..\WINDOWS\System32\stdole2.tlb#OLE Automation | ||
Object={EAB22AC0-30C1-11CF-A7EB-0000C05BAE0B}#1.1#0; shdocvw.dll | ||
Module=Module1; Module1.bas | ||
IconForm="Form1" | ||
Startup="Form1" | ||
ExeName32="Project1.exe" | ||
Command32="" | ||
Name="Project1" | ||
HelpContextID="0" | ||
CompatibleMode="0" | ||
MajorVer=1 | ||
MinorVer=0 | ||
RevisionVer=0 | ||
AutoIncrementVer=0 | ||
ServerSupportFiles=0 | ||
CompilationType=0 | ||
OptimizationType=0 | ||
FavorPentiumPro(tm)=0 | ||
CodeViewDebugInfo=0 | ||
NoAliasing=0 | ||
BoundsCheck=0 | ||
OverflowCheck=0 | ||
FlPointCheck=0 | ||
FDIVCheck=0 | ||
UnroundedFP=0 | ||
StartMode=0 | ||
Unattended=0 | ||
Retained=0 | ||
ThreadPerObject=0 | ||
MaxNumberOfThreads=1 | ||
|
||
[MS Transaction Server] | ||
AutoRefresh=1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<div align="center"> | ||
|
||
## Disable webbrowser control script errors | ||
|
||
|
||
</div> | ||
|
||
### Description | ||
|
||
Like many people, I've played around with the web browser control and vb. One of things that has always ticked me off is the fact that you can try to cancel popups by using cancel=true in the newwindow2 event. But many times you get a small window showing some kind of script error. I've even tried using ppdisp=webbrowser2.object where webbrowser2.visible=false. No matter what I try I still get the window with a Internet Explorer Script Error. I started to look at the webbrowser.silent property but every time I set it to true it doesn't work. Finally, I know why. You see every time a webbrowser control is run, it automatically sets webbrowser.silent=false. Setting it to true during development doesn't work. What you need to do is run a seperate control. I used a timer control in the form load event, to set the .silent property to true. I then set the timer.enabled=false. The silent property is now set and you won't have to worry about script messages again. So far every web site with popups has been blocked and no script errors. In the source example I also included a way to control popups using the ctrl key. | ||
|
||
### More Info | ||
|
||
|
||
|
||
<span> |<span> | ||
--- |--- | ||
**Submitted On** |2003-03-10 14:21:02 | ||
**By** |[Karl J\. Sak](https://github.com/Planet-Source-Code/PSCIndex/blob/master/ByAuthor/karl-j-sak.md) | ||
**Level** |Beginner | ||
**User Rating** |5.0 (40 globes from 8 users) | ||
**Compatibility** |VB 6\.0 | ||
**Category** |[Internet/ HTML](https://github.com/Planet-Source-Code/PSCIndex/blob/master/ByCategory/internet-html__1-34.md) | ||
**World** |[Visual Basic](https://github.com/Planet-Source-Code/PSCIndex/blob/master/ByWorld/visual-basic.md) | ||
**Archive File** |[Disable\_we1557483102003\.zip](https://github.com/Planet-Source-Code/karl-j-sak-disable-webbrowser-control-script-errors__1-43907/archive/master.zip) | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|