I’m having a confusing problem loading an HTMLViewer. My desktop app has a textfield for the url of the site I’d like to visit and a checkbox to determine whether the info should appear in my app’s HTMLViewer or in the users preferred browser (in my case Safari). The following code works fine for sites like Google, Wikipedia and Youtube but it does not work for my own site http://www.drafthistory.com. My site will load when I use my app to send it to the user preferred browser, but unlike other sites it will not load it when I want it to go to the HTMLViewer. Any suggestions appreciated.
dim link as string
link = trim(TextFieldBrowserFileName.text)
if CheckBoxToBrowser.Value then
'send it to HTMLViewer
HTMLViewer1.LoadURL(link)
TabPanel1.SelectedPanelIndex = 3
else
'send it to user preferred browser
System.GotoURL(link)
end