How Messagebox Show connecting to the url link

51 views Asked by At

I want to add a link, when the message appears, there is an ok button, when they click it will lead to the target URL link, how do I do it, can you help me

Public Shared Sub NewsInfo()
    MessageBox.Show("this message will appear")
End Sub

I have tried but error

If MessageBox.Show(Program."Demo version", MessageBoxButtons.YesNo) = DialogResult.Yes Then
    New Process() With { .StartInfo = { .FileName = "http://www.google.com" } }.Start()             
End If
1

There are 1 answers

1
Project Downgrade On

thanks for the help

if (MessageBox.Show(
        "test", "Visit", MessageBoxButtons.YesNo, MessageBoxIcon.Asterisk
    ) == DialogResult.Yes)
{
    System.Diagnostics.Process.Start("http://www.google.com");
}