Bonjour a tous
un Control WebBrowser IE6 sous VB6.
Aucuns liens ne fonctionne s'ils sont local.
Si j'indique un site Internet ça fonctionne..
J'ai fait plusieurs tests sans succès et
j'arrive au bout d'mes competences..
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13 Form1.WebBrowser1.Document.writeln "<html>" Form1.WebBrowser1.Document.writeln "<body>" Form1.WebBrowser1.Document.writeln "<a href=c:\test.html>toto1</a></p>" Form1.WebBrowser1.Document.writeln "<a href=c:/test.html>toto2</a></p>" Form1.WebBrowser1.Document.writeln "<a href=file:///c:/test.html>toto3</a></p>" Form1.WebBrowser1.Document.writeln "<a href=" & Chr(34) & "c:/test.html" & Chr(34) & ">toto4</a></p>" Form1.WebBrowser1.Document.writeln "<a href=" & Chr(34) & "file:///c:/test.html" & Chr(34) & ">toto5</a></p>" Form1.WebBrowser1.Document.writeln "</body>" Form1.WebBrowser1.Document.writeln "</html>"
Partager