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.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.18 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.