开发者

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

开发者 https://www.devze.com 2023-04-08 20:19 出处:网络
I am wondering if it is possible to add an image to a messagebox in VBA mainly, but if not 开发者_C百科any other languages.

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

精彩评论

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

关注公众号