Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

Visual Basic

Heya, I've got to use Visual Basic for an exam for IT, and I'm kinda new to it. I've picked up some stuff from using Ruby, as it seems fairly similar.

I'm playing around with it, and I came across the Web Browser widget. It has a .Url property; I tried changing this using a textbox and it tells me "String cannot be converted to System.Uri".

Anyone know how the Web Browser widget works that could tell me what I'm doing wrong here?

Ok so I worked that one out.

But now I'm getting an error that's not letting me test my project:

System.InvalidOperationException
{"An error occurred creating the form. See Exception.InnerException for details.  The error is: Request failed."}

It doesn't point me to a line, and even happens when I delete all of my code...

Thanks,

~Wyatt
 
If you could, please provide a bit more information about the form itself.

Where does it error, on the line that you call for the dialog to be shown?

Some aspects of Visual Basic programs are hidden in the .NET architecture, something Microsoft did to simplify transitioning from legacy code easier (such as selecting a start up form).

It might be easier to zip the project and upload it for someone else to look at the decompiled version of the program's CIL.
 
After playing around a bit I've worked out it's whenever I save a project and open it again.

This could be bad, since this is for a 20 hour exam over four days so saving/loading will be involved.

It happens on no line, or no line in my code, as it happens even with a completely blank form (no controls or coding).
 
What version of visual studio are you using?

If you're using an express edition, perhaps you might try running it in VM?
 
Can you post a screen shot of the error?
Upload the offending project(s)?

It's difficult to diagnose such a problem without more information.  Since you say it's not your code.
 
if its not showing a libne of code error then perhaps its in the form itself i had trouble with it sjut failing when i was making a snake game because i dident set my screen properties to become the walls of my snake game
 
oops sorry 4 waking an old post jsut me being a newbie but iv been msn'd to tell me about that take ting ill check it first next time XD

hope i dident bother anyone

ok now i know im ment to edit to add a sorry XD another thing to add the the checklist
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top