Vanara icon indicating copy to clipboard operation
Vanara copied to clipboard

ShellBrowser control causes error when trying to drop on a form

Open logikstate opened this issue 2 years ago • 5 comments

Grabbing the packages from NuGet (via Vanara.Windows.Shell) and trying to use a ShellBrowser (dragging the Vanara shell browser into a windows Form) causes an exception "microsoft.dotnet.designtools.client.design tools serverexception object doesnot match target type" ... Not sure if I'm doing something wrong? Tried in msvc 2022 and 2019

logikstate avatar Sep 20 '22 17:09 logikstate

This is a known issue. A few of us have tried to fix without success. It works if you add the control manually to your form.

dahall avatar Sep 21 '22 01:09 dahall

See https://github.com/dahall/Vanara/tree/master/UnitTests/ExplorerBrowser for an example of how to do this.

dahall avatar Sep 21 '22 16:09 dahall

This is a known issue. A few of us have tried to fix without success. It works if you add the control manually to your form.

Isn't this my Control?

I didn't use it some time now. I will see if I can fix it..

@dahall : Any issues known when using Vanara in .net 8 ?

tajbender avatar Nov 26 '23 13:11 tajbender

This is a known issue. A few of us have tried to fix without success. It works if you add the control manually to your form.

Isn't this my Control?

I didn't use it some time now. I will see if I can fix it..

@dahall : Any issues known when using Vanara in .net 8 ?

Not to my knowledge, and, yes, this is the control that you reworked. I've got a beta released that supports nullability and .NET 7. I'll see how 8.0 affects that build.

dahall avatar Nov 26 '23 16:11 dahall

@logikstate, @dahall: Sorry for being late..

I'll take a look at it.

@dahall: Could you assign this issue to me, so I don't forget about it?

tajbender avatar Mar 29 '24 13:03 tajbender