Skip to main content

Posts

Showing posts from October, 2014

How To Delete File In A Folder Using VB.Net

Imports System.IO  Private Sub DeleteFileInFolder()         Dim PathFile As String = Application.StartupPath & "\PengaturanTechnical\" & LblNomorLTSeksi.Text & ".pdf"         If System.IO.File.Exists(PathFile) = True Then             System.IO.File.Delete(PathFile)             MsgBox("File Has Been Deleted Completely")         Else             MsgBox("File Does Not Exist")         End If     End Sub

How To Check If Datagridview Is Empty In VB.Net