I wanted to put an image in a msgbox
. After I searched for it I found it impossible so I decided to put the image into the background of a input box on msgbox
. But I can't find how to do that:
- Putting an image as the background of a input box
- Customize the input box like removing the border and change the background color
The built-in
InputBox
function doesn't support custom backgrounds. You can build custom dialogs using the Internet Explorer COM object, though:Of course this is just a very basic example, so you most likely need to further customize the styles as well as the HTML code. One possible improvement would be the inclusion of the background image in the form of a data URI:
That way you won't have to reference an external file for the background. There are free online encoders you could use for encoding image files as base64, for instance this one.