Oh .... hehehehe ...... tnx for your reply ...... i figured out what to do ...... tnx

VB 6.0
Private Sub Form_Unload(Cancel As Integer)

VB.NET
Private Sub frmQuery_FormClosed(ByVal sender As Object, ByVal e As Windows.Forms.FormClosedEventArgs) Handles Me.FormClosed

VB 6.0
Private Sub Form_QueryUnload(Cancel As Integer, UnloadMode As Integer)

VB.NET
Private Sub frmQuery_FormClosing(ByVal sender As Object, ByVal e As Windows.Forms.FormClosingEventArgs) Handles Me.FormClosing