Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Dim fileName As String = My.Application.CommandLineArgs(0) Dim content As String = IO.File.ReadAllText(fileName) TextBox1.Text = content End Sub