如何在 MsgBox 中显示图像?
最佳答案
答案是:这是不可能的。 MsgBox
只能显示字符串。 (Documentation)
另一种方法是在 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
这应该显示在 Stack Overflow 的 about 中找到的维恩图。部分。
关于image - 在 VBScript MsgBox 中显示图像,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7172431/