Hii frnds,
I have a datagrid when i double click it, it retrieves me to another form with all the details ,now when i click on close i have a confirmation box yes /no. if i click on yes i cud see the form with the datagrid, now if i click on no i need to see the form with all the details... can u plz tell me wat will be the code for the 'no' button
this is my code:
form name: frmNWMDSearch
close_buttonclick:
dim frmAll as new ShowAllWorkers
DialogResult = MessageBox.Show("Are You Sure", "Confirm", MessageBoxButtons.YesNo, MessageBoxIcon.Question)
If (DialogResult.Yes) Then
Me.Close()
Else
frmAll.MdiParent = Me.ActiveForm
frmAll.Show()
End If
End Sub
if i run this, when i click on no, im getting a new frmallworkers form with no details..
plz help