Thanks It works

If myDialog.ShowDialog() = DialogResult.OK Then
                    'perform action based on user response
                End If

Try that :) You call the the ShowDialog() method, then perform some action if the correct response is received.

Thank you, it works now.