Anhänge öffnen

This commit is contained in:
2023-09-26 13:11:07 +02:00
parent 1b9023e3c3
commit ff95183c43
3 changed files with 40 additions and 5 deletions

View File

@@ -1,4 +1,5 @@
Imports System.Windows.Forms
Imports System.Diagnostics
Imports System.Windows.Forms
Public Class frmAvisoAnfuegen
@@ -232,4 +233,21 @@ Public Class frmAvisoAnfuegen
btnSaveAttachments.Enabled = False
End If
End Sub
Private Sub dgvAnhaenge_CellContentDoubleClick(sender As Object, e As DataGridViewCellEventArgs) Handles dgvAnhaenge.CellContentDoubleClick, dgvAnhaenge.CellDoubleClick
Try
If dgvAnhaenge.SelectedRows.Count > 0 Then
If dgvAnhaenge.SelectedRows(0).Cells(0).Value <> "" Then
Dim strTmpPath As String = System.IO.Path.GetTempPath()
Process.Start(strTmpPath & dgvAnhaenge.SelectedRows(0).Cells(0).Value)
End If
End If
Catch ex As Exception
VERAG_PROG_ALLGEMEIN.cErrorHandler.ERR(ex.Message, ex.StackTrace, System.Reflection.MethodInfo.GetCurrentMethod.Name)
End Try
End Sub
End Class