web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
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:
I have the same question (0)
  • Suggested answer
    David Musgrave MVP GPUG All Star Legend Moderator Profile Picture
    14,095 Most Valuable Professional on at

    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

  • RavinS Profile Picture
    10 on at

    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.

  • Almas Mahfooz Profile Picture
    11,009 User Group Leader on at

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

  • RavinS Profile Picture
    10 on at

    Hi Almas,

    Thanks for your response.

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

  • David Musgrave MVP GPUG All Star Legend Moderator Profile Picture
    14,095 Most Valuable Professional on at

    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.

  • Tim Wappat Profile Picture
    5,711 on at

    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
    14,095 Most Valuable Professional on at

    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 

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 611 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 529 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 285 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans