question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Bug]: **Many** Items cannot be Dragged and dropped onto a Form in Designer

See original GitHub issue

Describe the bug Whilst testing #91 reproduction steps in Standard-Toolkit-Demo’s I found that many of the toolkit items cannot simple be dragged and dropped onto a from.

Also of those items that have successfully been draged, then they cannot be deleted ! (This may be due to cascade error form the initial designer failures)

To Reproduce SomeDoNotWork

Expected behaviour Be able to use designer for *ALL Krypton elements

Desktop (please complete the following information):

  • OS: [e.g. Windows 10]
<Project Sdk="Microsoft.NET.Sdk.WindowsDesktop">
  <PropertyGroup>
    <TargetFrameworks>net48;net5.0-windows</TargetFrameworks>
    <OutputType>WinExe</OutputType>
    <RootNamespace>Test_Clip_Base</RootNamespace>
    <AssemblyName>Test Clip Base</AssemblyName>
    <GenerateAssemblyInfo>false</GenerateAssemblyInfo>
    <UseWindowsForms>true</UseWindowsForms>
    <PlatformTarget>AnyCPU</PlatformTarget>
  </PropertyGroup>

Additional context <ProjectReference Include="..\..\..\..\Standard-Toolkit\Source\Krypton Components\Krypton.Toolkit\Krypton.Toolkit 2019.csproj" />

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:13 (13 by maintainers)

github_iconTop GitHub Comments

2reactions
Smurf-IVcommented, May 15, 2021

Yay… Found the workaround… But it has to go into the Forms project…

  • Close any designer forms you may have open
  • Place the following into the csproj file:
    <ItemGroup>
        <Reference Include="System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" Condition="$(TargetFramework.StartsWith('net4'))">
            <SpecificVersion>True</SpecificVersion>
            <Version>4.0.0.0</Version>
            <TreatAsUsed>False</TreatAsUsed>
        </Reference>
        <Reference Include="System.Design, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" Condition="$(TargetFramework.StartsWith('net5'))">
            <SpecificVersion>True</SpecificVersion>
            <Version>5.0.0.0</Version>
            <TreatAsUsed>False</TreatAsUsed>
        </Reference>
        <Reference Include="System.Design, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" Condition="$(TargetFramework.StartsWith('net6'))">
            <SpecificVersion>True</SpecificVersion>
            <Version>6.0.0.0</Version>
            <TreatAsUsed>False</TreatAsUsed>
        </Reference>
        <Reference Include="System.Design" Condition="'$(TargetFramework)' == 'net35'" />
        <!--TODO: Need to specify version here-->
    </ItemGroup>

  • Rebuild.
    • You then MUST close Visual Studio and reopen / reload the solution
  • Open the Form and you will have the designers available to use 😃
1reaction
Smurf-IVcommented, May 15, 2021

The following needs to go into a FAQ - As it is a Feature of Visual Studio (16.9.x anyway!)

With the fixes I have done…

It is possible to load all of the Toolkits into a Target application that has a *Single Target framework.

IF the project is MultiTarget: Then it is NOT possible to use some of the Toolkit designer elements !

At least when Linking directly from the source of the Toolkit to the Project (Same will probably apply via NuGet as the Designer will not know which to use first !)

Read more comments on GitHub >

github_iconTop Results From Across the Web

Can't Move Controls With Mouse on Windows Form Designer
Controls can be moved with the keyboard; Controls can be resized by dragging the keypoints on the outline of the control; Controls can...
Read more >
[Bug]: Cannot add items to KryptonGroupBox in designer #91
I understand bug #91 is claimed to be resolved, but I can't add items to a KryptonGroupBox in the WinForm designer. I'm using...
Read more >
Workitemsorder - requested by drag and drop not always ...
In order to solve this problem, Please find the work items that has become the parent of different work items and delete this...
Read more >
Has drag & drop from File Explorer onto canvas bee...
Solved: On windows 10 with Alteryx 2018.4 I cant seem to drag and drop files or workflows from file explorer onto the canvas....
Read more >
Unable to add symbol - getting form block error - Bugs
The workaround would be to add a new form parent element and then move that parent around the canvas as needed with the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found