Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

141
Vistas
How do I Convert a String to a System.Uri?

Im building an app in visual studio (Visual Basic or C#) for my website. (This is not a website advertisement)

there are 2 versions of the website. An old one and a New one. In the settings area of the app, a user presses a button which changes a variable (or setting). So when that button is clicked, the user can then go to the webbrowser and be greeted with that choice of the old one or the new one as they selected.

But when I code it in the browser form with webbrowser1.url = my.settings.website it throws back an error with a blue ~ line under my.settings.website saying: Value of type 'String' cannot be converted to 'System.uri'.

Does anyone know a way round this?

over 4 years ago · Santiago Trujillo
2 Respuestas
Responde la pregunta

0

webbrowser1.Url property expects an object of type System.Uri and you are supplying just a String, which can't be converted automatically. Try the following:

webbrowser1.Url = new System.Uri(my.settings.website);
over 4 years ago · Santiago Trujillo Denunciar

0

webbrowser1.url = new System.uri(my.settings.website) ;
over 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda