CodeBus
www.codebus.net
Search
Sign in
Sign up
Hot Search :
Source
embeded
web
remote control
p2p
game
More...
Location :
Home
Search - MSDN
Main Category
SourceCode
Documents
Books
WEB Code
Develop Tools
Other resource
Sub Category
Network Marketing
Management
E-commerce
Business guide
Business plan
Successful incentive
Human Resources
Report papers
Marketing materials
Consulting and training
Website
Software Engineering
File Format
Technology Management
Industry research
Program doc
Other
Search - MSDN - List
[
Documents
]
WebBrowser的8个方法和13个属性
DL : 0
WebBrowser的8个方法和13个属性,以及它们的功能: 方法 说明 GoBack 相当于IE的“后退”按钮,使你在当前历史列表中后退一项 GoForward 相当于IE的“前进”按钮,使你在当前历史列表中前进一项 GoHome 相当于IE的“主页”按钮,连接用户默认的主页 GoSearch 相当于IE的“搜索”按钮,连接用户默认的搜索页面 Navigate 连接到指定的URL Refresh 刷新当前页面 Refresh2 同上,只是可以指定刷新级别,所指定的刷新级别的值来自RefreshConstants枚举表, 该表定义在ExDisp.h中,可以指定的不同值如下: REFRESH_NORMAL 执行简单的刷新,不将HTTP pragma: no-cache头发送给服务器 REFRESH_IFEXPIRED 只有在网页过期后才进行简单的刷新 REFRESH_CONTINUE 仅作内部使用。在MSDN里写着DO NOT USE! 请勿使用 REFRESH_COMPLETELY 将包含pragma: no-cache头的请求发送到服务器 Stop 相当于IE的“停止”按钮,停止当前页面及其内容的载入 属性 说明 Application 如果该对象有效,则返回掌管WebBrowser控件的应用程序实现的自动化对象(IDispatch)。如果在宿主对象中自动化对象无效,这个程序将返回WebBrowser 控件的自动化对象 Parent 返回WebBrowser控件的父自动化对象,通常是一个容器,例如是宿主或IE窗口 Container 返回WebBrowser控件容器的自动化对象。通常该值与Parent属性返回的值相同 Document 为活动的文档返回自动化对象。如果HTML当前正被显示在WebBrowser中,则 Document属性提供对DHTML Object Model的访问途径 TopLevelContainer 返回一个Boolean值,表明IE是否是WebBrowser控件顶层容器,是就返回true Type 返回已被WebBrowser控件加载的对象的类型。例如:如果加载.doc文件,就会返 回Microsoft Word Document Left 返回或设置WebBrowser控件窗口的内部左边与容器窗口左边的距离 Top 返回或设置WebBrowser控件窗口的内部左边与容器窗口顶边的距离 Width 返回或设置WebBrowser窗口的宽度,以像素为单位 Height 返回或设置WebBrowser窗口的高度,以像素为单位 LocationName 返回一个字符串,该字符串包含着WebBrowser当前显示的资源的名称,如果资源 是网页就是网页的标题;如果是文件或文件夹,就是文件或文件夹的名称 LocationURL 返回WebBrowser当前正在显示的资源的URL Busy 返回一个Boolean值,说明WebBrowser当前是否正在加载URL,如果返回true 就可以使用stop方法来撤销正在执行的访问操作 如何利用 WebBrowser 控件,显示 .GIF 动画? 要有一定的网页知识(HTML、JavaScript、CSS) 注意细节: 没有"滚动条"和"鼠标右键弹出的 IE 上下文菜单",".HTM 源文件" ... 我写了一个,效果还真不错! ''Objects: Form1、Command1、CommonDialog1、WebBrowser1 Option Explicit Private Sub Command1_Click() CommonDialog1.ShowOpen If VBA.Len(VBA.Trim(CommonDialog1.FileN欢迎光临学网,点击这里查看更多文章教程 [1] [2] [3] [4] [5] [6] [7] [8] ame)) > 0 Then Dim p As stdole.StdPicture Dim sPath As String sPath = VBA.Trim(VBA.Trim(CommonDialog1.FileName)) Set p = VB.LoadPicture(sPath) WebBrowser1.Width = p.Width * 16 / 26 WebBrowser1.Height = p.Height * 16 / 26 '' WebBrowser1.Navigate "about:blank" WebBrowser1.Document.open WebBrowser1.Document.writeln "" WebBrowser1.Document.writeln "" WebBrowser1.Document.writeln "" WebBrowser1.Document.writeln "" WebBrowser1.Document.writeln "WebBrowser1.Document.writeln " WebBrowser1.Document.writeln "WebBrowser1.Document.writeln " " WebBrowser1.Document.writeln "" WebBrowser1.Document.writeln "" End If End Sub Private Sub Form_Load() Command1.Caption = "&Open" WebBrowser1.Navigate "about:blank" WebBrowser1.Document.open WebBrowser1.Document.writeln "" WebBrowser1.Document.writeln "" WebBrowser1.Document.writeln "" WebBrowser1.Document.writeln "" WebBrowser1.Document.writeln "WebBrowser1.Document.writeln "" WebBrowser1.Document.writeln "" WebBrowser1.Document.Close End Sub
Date
: 2010-10-05
Size
: 3.9kb
User
:
weidonglingsir@163.com
[
Documents
]
Windows编程 MSDN
DL : 0
适用于windows编程
Date
: 2011-09-22
Size
: 10.49mb
User
:
yjk.2198626@163.com
[
Documents
]
msdn里面关于vfw的内容的翻译
DL : 0
《谈谈使用VFW在windows下编程控制摄像头》msdn里面关于vfw的内容的翻译 对vfw编程非常有用-"on the use of the VFW windows programming under control camera" on the VFW flowing inside the contents of the translation right VFW very useful programming
Date
: 2025-12-24
Size
: 36kb
User
:
吴俊强
[
Documents
]
clibrary
DL : 0
C语言常用库函数的使用方法,全!!! 比MSDN里的介绍还要详细.. 每一个例子都可以完整的编译通过并运行-C language function used for the use, all! ! ! more than MSDN's also briefed in detail .. every one example of integrity can compile and run
Date
: 2025-12-24
Size
: 33kb
User
:
陈伟
[
Documents
]
msdn
DL : 0
Date
: 2025-12-24
Size
: 18.37mb
User
:
yaoyuan
[
Documents
]
RegExp
DL : 0
整理的一份正则表达式的资料,来自MSDN,主要供VBScript参考-Organize a regular expression information, from MSDN, the main reference for VBScript
Date
: 2025-12-24
Size
: 22kb
User
:
jar
[
Documents
]
VC6.0MFC
DL : 0
VC++ 6.0 msdn中文版.中文版msdn,需然小了点,不过对入门都来说是不错的选择-VC++ 6.0 msdn Chinese. Chinese msdn, then take a small point, but all of the entry is a good choice ....
Date
: 2025-12-24
Size
: 2.8mb
User
:
阳光旅程
[
Documents
]
msdn-library
DL : 0
vc6.0的2001版本的帮助,有助于开发效率,供大家学习使用-vc6.0 the 2001 version of the help and contribute to the development of efficient, for them to learn to use
Date
: 2025-12-24
Size
: 1kb
User
:
吕杰
[
Documents
]
MFC类库详解
DL : 0
mfc中文类库详解,对mfc基本每个类都有详细的解释,是不愿意看英文的人很好的帮助,通过这个也可以对比英文版本msdn,对学习有很大的帮助。(MFC Chinese class library detailed, the basic MFC each class has a detailed explanation, is not willing to look at English people very good help, through this can also compare the English version of MSDN, to learn a lot of help.)
Date
: 2025-12-24
Size
: 1.38mb
User
:
achang
[
Documents
]
VS2010 and MSDN install
DL : 0
VS2010与MSDN安装,VS2010旗舰试用版VS2010UltimTrial.iso为例介绍安装过程,MSDN安装过程(VS2010 and MSDN install)
Date
: 2025-12-24
Size
: 375kb
User
:
进无止境6A
CodeBus
is one of the largest source code repositories on the Internet!
Contact us :
1999-2046
CodeBus
All Rights Reserved.