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
Hi David,
Just tested out with latest Dex 18.00.0028 and it still does not support ToolStrip control.
I'll better log this case for Microsoft support.
Thanks,
Kelvin
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.
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
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
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.
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
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
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
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
Any help please?
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,240 Super User 2024 Season 2
Martin Dráb 230,149 Most Valuable Professional
nmaenpaa 101,156