开发者

Is there a way to add an image to a MessageBox in VBA?

I am wondering if it is possible to add an image to a messagebox in VBA mainly, but if not 开发者_C百科any other languages.

MsgReply = MsgBox("InspectionCreator - Continue?", vbMsgBoxSetForeground + vbSystemModal + vbYesNo)
If vbYes = MsgReply Then
Listener.Connect2SW
Else: End
End If


No, you can't display an image in a MessageBox. Unless you mean the symbols such as Warning, Error, etc?

Although you could simulate it by creating a UserForm which has the appearance of a MessageBox, with an image in the background and then just Show() the form instead of calling the MsgBox function.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜