Skip to main content

Notifications

Finance | Project Operations, Human Resources, ...
Unanswered

Dexterity 18 is disabling .net toolstrip control (System.Windows.Forms.ToolStrip)

Posted on by 30

hi all,

We are upgrading Dexterity 8 to Dexterity 18 and one of the issues we are facing is the existing toolstrip control (System.Windows.Forms.ToolStrip)  from .NET form is now unable to click in MDI mode(Tools_UseShell(SHELL_TYPE_WIN32_MDI, SHELL_OPTION_DEFAULT)). We can still mouse hover on the toolstrip to see all buttons up and down(checked or unchecked), but no event raised when clicking on them.

If the .NET form is opened in SDI mode(Tools_UseShell(SHELL_TYPE_MANAGED_SDI, SHELL_OPTION_DEFAULT)) then it is OK.

If we add a separate button (Syste,.Windows.Forms.Button) then the new button works fine.

Is it a known bug from Dexterity 18? is there anyone here opening a .NET form with toolstrip control from Dexterity 18?

Thanks in advance,

Kelvin

toolstrip-not-working.png

pastedimage1612499560323v3.png

Categories:
  • KelvinNguyen Profile Picture
    KelvinNguyen 30 on at
    RE: Dexterity 18 is disabling .net toolstrip control (System.Windows.Forms.ToolStrip)

    Hi David,

    Just tested out with latest Dex 18.00.0028 and it still does not support ToolStrip control.

    toolstrip4.png

    I'll better log this case for Microsoft support.

    Thanks,

    Kelvin

  • KelvinNguyen Profile Picture
    KelvinNguyen 30 on at
    RE: Dexterity 18 is disabling .net toolstrip control (System.Windows.Forms.ToolStrip)

    Hi David,

    I just tried toolstrip itself, toolstrip inside ToolStripPanel, toolstrip inside ToolStripContainer, no cases are working for MDI mode when the form is focused.

    8623.toolstrip2.png

    Below is the code FYI

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

    using System;
    using System.Windows.Forms;

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

    private void toolStripButton1_Click(object sender, EventArgs e)
    {
       //... any code
    }

    }

    -----------------------------------------------------------------------------

    I probably try latest Microsoft Dynamics GP version now.

    Thanks,Kelvin

  • David Musgrave MVP GPUG All Star Legend Moderator Profile Picture
    David Musgrave MVP ... 13,915 Most Valuable Professional on at
    RE: Dexterity 18 is disabling .net toolstrip control (System.Windows.Forms.ToolStrip)

    Hi Kelvin

    My background is Dexterity and all user interface development I do is using Dexterity. This works better as it remains web client compatible and a better user experience due to the consistent interface. I understand that you might need user interface objects that are not supported in Dexterity windows and so need .Net forms.

    A friend I chatted to found the follow that may help with the change to MDI windows.

    Use ToolStripPanel rather than ToolStripContainer for Multiple Document Interface (MDI) applications. Typically, a ToolStrip does not participate in the tab order unless it is absolutely positioned rather than being docked or in a ToolStripPanel.

    Regards

    David

  • KelvinNguyen Profile Picture
    KelvinNguyen 30 on at
    RE: Dexterity 18 is disabling .net toolstrip control (System.Windows.Forms.ToolStrip)

    Hi David,

    Thanks again for your reply.

    I've just found another interesting thing about toolstrip, that is when I do not activate the parent form where the toolstrip is inside (that means clicking anywhere outside of the form), then I can click on it, and mouse over will give a tooltip!!!

    Below is a simple .net form where I am trying to test toolstrip control.

    Please see below screenshot for details.

    toolstrip2.png

    I am trying to see any toolstrip properties which I can tweak to fix this issue or not. Otherwise I will give a try on latest Dexterity build 18.00.0028.000 as your suggestion.

    Thanks,

    Kelvin

  • David Musgrave MVP GPUG All Star Legend Moderator Profile Picture
    David Musgrave MVP ... 13,915 Most Valuable Professional on at
    RE: Dexterity 18 is disabling .net toolstrip control (System.Windows.Forms.ToolStrip)

    You could try the latest Dexterity build 18.00.0028.000 released with GP 18.3

    You can wait for a MS support team member to respond on this thread.

    Or if you need urgent help you can log a support case.

    Regards

    David

  • KelvinNguyen Profile Picture
    KelvinNguyen 30 on at
    RE: Dexterity 18 is disabling .net toolstrip control (System.Windows.Forms.ToolStrip)

    Hi David,

    Thanks for your reply.

    This is a legacy product which was originally developed by Dexterity then we have moved lots of transaction forms to .NET to take advantage of .net advantages i.e GDI drawing, multi-threads, performance.

    I really don't understand why Dynamics GP 2018 does not support popular .net toolstrip control.

    I am still trying to work out the solution because we have probably 100 .net forms using toolstrip. :(

    Kind Regards,

    Kelvin

  • David Musgrave MVP GPUG All Star Legend Moderator Profile Picture
    David Musgrave MVP ... 13,915 Most Valuable Professional on at
    RE: Dexterity 18 is disabling .net toolstrip control (System.Windows.Forms.ToolStrip)

    Hi Kelvin

    I have never used that functionality and don't know of anyone that has.

    Any reason why you don't use Dexterity itself?

    Also have a look at my free Visual Studio Integration Toolkit. It exposes lots of Dexterity only functionality to Visual Studio developers.

    Website: https://www.winthropdc.com/products_VSIT.htm

    Portal: http://winthropdc.com/VSIT 

    Regards

    David

  • KelvinNguyen Profile Picture
    KelvinNguyen 30 on at
    RE: Dexterity 18 is disabling .net toolstrip

    Any help please?

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!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans