I know that with the code below you could open the web browser and direct it to a certain URL page:
private void Button_Click(object sender, RoutedEventArgs e)
{
Process.Start("https://www.youtube.com/");
}
but for unknown reason I get an error:
"Win32Exception was unhandled"
An unhandled exception of type 'System.ComponentModel.Win32Exception' occurred in System.dll
Additional information: Class not registered
The weird part is, this code runs perfect on my deskotp but not on my laptop. Any help is welcome.
Aucun commentaire:
Enregistrer un commentaire