How to refresh the htmlpanel
Hello,
I load an external html file into the panel. This works great. However when I want to load another html file into that panel, the previous one, is still visible.
Maybe a stupid question, but how can I refresh the control with another htmlfile ? (based on the users choice)
here is the code:
Public Sub showInfo(p_kaartnummer)
frmInfo.Show
frmInfo.Text = sTitel(p_kaartnummer)
html = AppPath & "\" & p_kaartnummer & ".html"
HtmlPanel.New1("frmInfo", 0, 0,frminfo.Width,frminfo.Height)
Htmlpanel.ChangeColor("color1",cYellow)
Htmlpanel.ChangeColor("color2",cWhite)
HtmlPanel.ButtonColor = cGray
HtmlPanel.BackColor = cBlack
HtmlPanel.LinkColor = cPurple
HtmlPanel.ScrollBarWidth = 10
HtmlPanel.RenderWidth = 210
HtmlPanel.RenderLeftMargin = 0
HtmlPanel.RenderRightMargin = 0
HtmlPanel.ShowHtmlFile(html)
End Sub