Search code examples
c#htmlwindows-forms-designercontrolbox

Make a combo box list item open a webpage?


if (comboBox1.Text == "Asus";
System.Diagnostics.Process.Start("http://www.asus.com");

This is basically what I am trying to do, but it seems so hard to find some good combo box tutorials! I am doing this with a windows form (not WPF). Thank you for your help.


Solution

  • Try to fix the syntax error

    if (comboBox1.Text == "Asus")
      System.Diagnostics.Process.Start("http://www.asus.com");