1 2 3 4 5 6 7 8 | Private Sub btnPath_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnPath.Click OpenFileDialog1.FileName = "" OpenFileDialog1.Filter = "Access Documents|*.mdb;*.accdb" Dim result As DialogResult = OpenFileDialog1.ShowDialog() If result = Windows.Forms.DialogResult.OK Then txtPath.Text = OpenFileDialog1.FileName End If End Sub |
2020年6月9日 星期二
vb.net 使用OpenFileDialog選擇檔案 [Use OpenFileDialog to Select File]
訂閱:
張貼留言 (Atom)
沒有留言:
張貼留言