runswithsizzors
Well-known member
Capturing Form Close Event - Solve Thanks!
I have been working on creating a screen that deletes database records. On the main screen I have a delete button that opens the delete screen. I need to refresh the main screen when the delete screen is closed so the record in the datagrid is acurate and doesn't contain the deleted database record. What is the best way of doing this. This is the way I have been doing on the main form I have:
PrivateWithEvents DCForm As DCChild
PrivateSub DCForm_Close(ByVal sender AsObject, ByVal e As System.EventArgs) Handles DCForm.Closed
Me.ClearFields()
Me.DataGridRefresh()
EndSub
ClearFields and DataGridRefresh are two procedures I wrote to fresh the screen. But even if I put a messagebox or anything like that the function just isn't firing. Any suggestions?? Thanks!
I have been working on creating a screen that deletes database records. On the main screen I have a delete button that opens the delete screen. I need to refresh the main screen when the delete screen is closed so the record in the datagrid is acurate and doesn't contain the deleted database record. What is the best way of doing this. This is the way I have been doing on the main form I have:
PrivateWithEvents DCForm As DCChild
PrivateSub DCForm_Close(ByVal sender AsObject, ByVal e As System.EventArgs) Handles DCForm.Closed
Me.ClearFields()
Me.DataGridRefresh()
EndSub
ClearFields and DataGridRefresh are two procedures I wrote to fresh the screen. But even if I put a messagebox or anything like that the function just isn't firing. Any suggestions?? Thanks!
Last edited: