Image 在VBScript MsgBox中显示图像

Image 在VBScript MsgBox中显示图像,image,vbscript,msgbox,Image,Vbscript,Msgbox,如何在MsgBox中显示图像?答案是:这是不可能的MsgBox只能显示字符串。() 另一种方法是在Internet Explorer的小窗口中显示图像。下面是一个例子: Set objExplorer = CreateObject("InternetExplorer.Application") With objExplorer .Navigate "about:blank" .ToolBar = 0 .StatusBar = 0

如何在MsgBox中显示图像?

答案是:这是不可能的
MsgBox
只能显示字符串。()

另一种方法是在Internet Explorer的小窗口中显示图像。下面是一个例子:

Set objExplorer = CreateObject("InternetExplorer.Application")

With objExplorer
    .Navigate "about:blank"
    .ToolBar = 0
    .StatusBar = 0
    .Left = 100
    .Top = 100
    .Width = 200
    .Height = 200
    .Visible = 1
    .Document.Title = "Important image!"
    .Document.Body.InnerHTML = _
        "<img src='http://sstatic.net/stackoverflow/img/venn-diagram.png' height=100 width=100>"
End With
Set-objExplorer=CreateObject(“InternetExplorer.Application”)
使用objExplorer
.导航“关于:空白”
.ToolBar=0
.StatusBar=0
.左=100
.Top=100
.宽度=200
.高度=200
.Visible=1
.Document.Title=“重要图像!”
.Document.Body.InnerHTML=_
""
以

这将显示堆栈溢出部分中的维恩图。

您需要的是超文本应用程序,或HTA。您可以使用HTML创建表单。

是的,我问了一个关于制作对话框的问题,有人提到了与您相同的事情。谢谢你的帮助,我一定也会练习这门语言。