10-11-16, 04:59 PM
وعليكم السلام
يمكنك استغلال الخاصية Tag لوضغ المسار بها
استفد من هذا الكود
يمكنك استغلال الخاصية Tag لوضغ المسار بها
استفد من هذا الكود
كود :
Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles Button1.Click
Using open As New OpenFileDialog With {.Filter = "Microsoft Word Document (*.docx)|*.docx"}
If open.ShowDialog = Windows.Forms.DialogResult.OK Then
Dim title As String = IO.Path.GetFileNameWithoutExtension(open.FileName)
Dim path As String = open.FileName
MsgBox(title)
MsgBox(path)
End If
End Using
End Sub
