If your project is a WPF .Net Core 3.1 then you have to add the following tag to the project file :-
<UseWindowsForms>true</UseWindowsForms>
My project file looks like this with this line in:
<Project Sdk="Microsoft.NET.Sdk.WindowsDesktop">
<PropertyGroup>
<OutputType>WinExe</OutputType>
<TargetFramework>netcoreapp3.1</TargetFramework>
<UseWPF>true</UseWPF>
<UseWindowsForms>true</UseWindowsForms> <<<<-----
</PropertyGroup>
</Project>
After adding this line, save and clean the existing solution build and then rebuild it. This sorted the issue for me...oh don't forget to also add the "using" to your code file where you using the folder selection method:
using System.Windows.Forms;