是否有可能在VB窗体中加载TIF图像

时间:2013-01-02 21:02:48

标签: excel vba excel-vba excel-formula

任何在VB表单中加载TIF图像的可能性,如果这样,请分享代码

1 个答案:

答案 0 :(得分:1)

一种方法可能是使用webcontrol 在userform-designer中,右键单击工具箱,然后选择其他控件...然后Microsoft Web Browser 代码可能类似于:

Private Sub CommandButton1_Click()
    WebBrowser1.Navigate2 _
    "about:<body style=""background:url('F:\Test.tif')"">&nbsp;</body>"
End Sub

虽然有效但很复杂,可能很慢。