Devo aprire un file html per mostrarne il codice.
Presto fatto:
Imports System.IO Public Class Form1 Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load Dim sr As New StreamReader("C:\users\antonello\documents\prova.html") Dim line As String = sr.ReadToEnd() TextBox1.Text = line End Sub End ClassEd ecco il codice nella TextBox:
<html> <body bgcolor=green> <div style="background-color:red;color:white">Ciao bestia</div> </body>
Nessun commento:
Posta un commento