Dim cmd As New SqlCommand("delete from loading where loadingrefno='" & loadingrefno.Text & "'", con) Dim res As Integer = cmd.ExecuteNonQuery If res = 1 Then MsgBox("Are You sure you want to delete", MsgBoxStyle.YesNo, "Are You Sure") Exit Sub MsgBox("deleted succesfully") clear() AutoGenerate() fill() Else MsgBox("details not found") End If
if (MsgBox("Are You sure you want to delete", MsgBoxStyle.YesNo, "Are You Sure")==DialogResult.Yes Then //Delete code here MsgBox("deleted succesfully") clear() AutoGenerate() fill() EndIf
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)