Advertisement
Guest User

Untitled

a guest
Sep 20th, 2017
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
  2.     Dim path As Stream
  3.     Dim path2 As New OpenFileDialog()
  4.     Dim path3 As String
  5.     path2.InitialDirectory = "c:\"
  6.     path2.Filter = "*.exe | *.exe"
  7.     If path2.ShowDialog() = DialogResult.OK Then path = path2.OpenFile()
  8.     TextBox1.Text = path2.FileName
  9.     path3 = path2.FileName
  10. End Sub
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement