Skip to main content

Notifications

Announcements

No record found.

Finance | Project Operations, Human Resources, ...
Suggested answer

Microsoft.Dexterity.Shell.DexUIForm

(1) ShareShare
ReportReport
Posted on by 10

Hi David,

I am updating a GPAddin project from GP 2018 to GP 18.4, this addin has many forms that inherited DexUIForm. However after adding the Microsoft.Dexterity.Shell and Microsoft.Dexterity.Bridge dlls for GP 18.4 to the project, I cannot open the form in design mode.

I am using VS2022 with the latest update.

The error:
“The designer could not be shown for this file because none of the classes within it can be designed. The designer inspected the following classes in the file: DynamicsGPForm1—The base class ‘Microsoft.Dexterity.Shell.DexUIForm’ could not be loaded. Ensure the assembly has been referenced and that all projects have been built.”

I was wondering if there is a work around for this issue.

Microsoft say they are not supporting VSTools any longer.

using Microsoft.Dexterity.Applications;
using Microsoft.Dexterity.Bridge;
using Microsoft.Dexterity.Shell;

namespace DynamicsGPAddin4
{
          public partial class DynamicsGPForm1 : DexUIForm
         {
                  public DynamicsGPForm1()
                  {
                           InitializeComponent();
                  }
         }
}

Categories:
  • David Musgrave MVP GPUG All Star Legend Moderator Profile Picture
    David Musgrave MVP ... 13,945 Most Valuable Professional on at
    RE: Microsoft.Dexterity.Shell.DexUIForm

    Thanks Tim for the explanation.

    So, it looks like I will keep my Visual Studio 2019 install as the only reason I use Visual Studio is to integrate with Dynamics GP to handle the bits that Dexterity cannot do natively.

    I had been thinking of changing to Visual Studio 2022, but that sounds like a bad idea now, considering I only use it with a 32 bit Application.

    David 

  • Tim Wappat Profile Picture
    Tim Wappat 5,701 on at
    RE: Microsoft.Dexterity.Shell.DexUIForm

    Sorry I didn't see this before. 

    This is a change in Visual Studio 2022 where they moved to 64bit application that is not going to work with GP, a 32bit application. Full details in my blog post linked here:

    timwappat.info/.../Dynamics_GP_Addins_VisualSudio2022

  • David Musgrave MVP GPUG All Star Legend Moderator Profile Picture
    David Musgrave MVP ... 13,945 Most Valuable Professional on at
    RE: Microsoft.Dexterity.Shell.DexUIForm

    Hi Ravin

    GP Power Tools is an excellent option for custom development with GP, but it cannot replace winforms.  If you can use modified forms instead, it could probably do what you need.

    winthropdc.wordpress.com/.../

    FYI: An upcoming build of Visual Studio Integration Toolkit combined with GP Power Tools will offer the ability to add new windows.

  • RavinS Profile Picture
    RavinS 10 on at
    RE: Microsoft.Dexterity.Shell.DexUIForm

    Hi Almas,

    Thanks for your response.

    All the references are there, I also checked the version too.

  • Almas Mahfooz Profile Picture
    Almas Mahfooz 11,003 User Group Leader on at
    RE: Microsoft.Dexterity.Shell.DexUIForm

    Did you check your reference? Because I don't see any reason for this not working.

  • RavinS Profile Picture
    RavinS 10 on at
    RE: Microsoft.Dexterity.Shell.DexUIForm

    Hi David,

    Thanks for your response.

    I did install Tim Wappat VS Extension for GP from MS marketplace, I always use the extension to create GP Addins.

    It always work until recently, for some reason VS does not want to use DexUIForm base from Microsoft.Dexterity.Shell.dll. If I change the base to "Form" (system) it will work but I loose functionality that I already have in place.

    I have a support case to MS and they recommended that GPPOWERTOOLS from you may have a solution, hence the reason for the post.

  • Suggested answer
    David Musgrave MVP GPUG All Star Legend Moderator Profile Picture
    David Musgrave MVP ... 13,945 Most Valuable Professional on at
    RE: Microsoft.Dexterity.Shell.DexUIForm

    Hi Ravin

    I will be honest. I have never used a VSTools Winform in any of my projects. But that is because I use VSTools to support my Dexterity projects when Dexterity cannot do something natively.

    I do want to check that you have installed the VS Tools SDK Templates for Visual Studio?

    Tim Wappat has provided a method of loading them into current Visual Studio versions via the Extension Gallery.

    See https://timwappat.info/page/visual-studio-templates-for-microsoft-dynamics-gp

    Regards

    David

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,419 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,492 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans