Log in

View Full Version : open file dialog


Darkc0der
20th November 2011, 11:02 PM
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

OpenFileDialog1.ShowDialog()

OpenFileDialog1.InitialDirectory = My.Computer.FileSystem.SpecialDirectories.MyDocume nts



OpenFileDialog1.Filter = "Text Files (*.txt)|*.txt|All Files (*.*)|*.*"



Process.Start(Me.OpenFileDialog1.FileName())



End Sub



gan,,, dari kode di atas ko' pas dialog'ya muncul trus di cancel/diclose ko' error ya.. kalo open nya sih udah lancar..

oh y 1 lg,,, pada file name ko' muncul'ya tulisan open file dialog..

mohon pencerahan'ya....,,,:tanya:

</div>