【发布时间】:2024-01-30 15:35:01
【问题描述】:
我想将此嵌入到我的 Windows 窗体中。
Private Sub InitializeComponent()
Try
Me.VirtualView = New WebBrowser
Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 13.0!)
Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
Me.ClientSize = New System.Drawing.Size(347, 261)
Me.Name = "frmVirtual"
Me.Text = "frmVirtual"
Me.VirtualView.ScriptErrorsSuppressed = True
Me.VirtualView.Name = "frmVirtual"
Me.VirtualView.DocumentText = "<html><body><iframe width='600' height='450' style='border: 0' src='https://www.google.com/maps/embed?pb=!1m0!3m2!1sen!2sau!4v1481252003737!6m8!1m7!1sF%3A-pwYGx-oWTIk%2FWC6LeJuIxdI%2FAAAAAAAABIg%2FphppDvMZr54JiWnLbsbUgDcTGUfGXLMRACLIB!2m2!1d-33.76525136331761!2d150.9088391438127!3f310!4f0!5f0.7820865974627469' frameborder='0' allowfullscreen></iframe></body></html>"
Catch ex As Exception
MessageBox.Show(ex.Message.ToString(), "Unable to Retrieve")
End Try
End Sub
但此代码上没有显示任何内容。请帮忙。谢谢。
【问题讨论】:
-
您是否尝试过您提出的解决方案?如果不试试...
-
我已经修改了我的问题。
-
请不要一直添加到您的问题中,您面临的问题是显示
iframe,我对此提供了帮助。增加问题会使遇到相同问题的人更难找到正确答案。与往常一样,如果您找到了可以提供帮助的解决方案,请投票。
标签: vb.net winforms virtual-tour