How to open a file with the OpenFileDialog in VB.NET


SUBMITTED BY: Guest

DATE: Feb. 14, 2014, 6:48 p.m.

FORMAT: Text only

SIZE: 184 Bytes

HITS: 1460

  1. Dim o As New OpenFileDialog With {.Filter = "Exe|*.exe;*.dll"}
  2. If o.ShowDialog = Windows.Forms.DialogResult.OK Then
  3. f = o.FileName
  4. End If

comments powered by Disqus