0

Context:

Visual Studio 10, Win 10, developping an Winform application in VB.Net

Issue:

I can't add a webview control to my forms and lots of other controls are grayed out

Cause:

Following the answer of sribasu here, it seems that this issue found its origin in the fact that my app was a "Windows Form App" instead of "Windows Form App (.NET platform)" (sorry, i use VS 2019 in French, not sure about the translation

Question:

Is there a way to convert my project to be able to use controls like Webview?

8oris
  • 320
  • 2
  • 12

1 Answers1

0

Ok, i found something on Microsoft forums.

To change the project type, edit the vbproj file of the project, find the line with TargetFramework and edit it like this:

<TargetFramework>net472</TargetFramework>

There could be some things that won't compile though. -_-

8oris
  • 320
  • 2
  • 12
  • And to complete: to add a webview control in .NET 5.0 winform project, just add SDK WebView2. see: https://learn.microsoft.com/fr-fr/microsoft-edge/webview2/get-started/winforms – 8oris Feb 16 '22 at 14:17
  • Done. Sorry for the delay, i'm still a stackoverflow rookie considering the rules... – 8oris Feb 25 '22 at 09:18