Modal GP Add-in window launching Dex form causes backspace and tab weird characters - Microsoft Dynamics GP

I have found an issue when launching a Dexterity GP windows form from an addin form that is being shown modally. The launched Dexterity form generates funny characters when the backspace key is pressed and the Tab key does not work.

For example, use this code from a button click even on a new windows form that is being shown modally:

Microsoft.Dexterity.Applications.SmartListDictionary.VendorLookupForm window = Microsoft.Dexterity.Applications.SmartList.Forms.VendorLookup;


Once the lookup launches, if the user presses the back-space key while they have focus on the “Find by …” box, then strange characters are inserted. We would expect instead for the text to be deleted, you can see in the screen shot, within the highlighted region an example of those characters. If the same actions are taken, only this time the origin form is a non-modal windows form, then the characters to the left of the caret are removed, as we would normally expect.

(Ignore the pixelated content in the Creditors screenshot below, done from privacy.)


It would seem to be the same as this post: "Invalid characters when when opening a dex form via a modal .net form"

I would love a work around or more information on why this happens as it means not being able to use any of the GP lookup windows from a modal windows form in an add-in, or finding a UI story that works without modal dialogs, something I’d rather not have to develop.

If you can offer any assistance, please comment on this post.

This has also been posted on the GP forums here:


In our add-in, currently each lookup gets its own .NET duplicate of the built in lookup.

  • We have to build bespoke for each type of field required
  • This duplicate lacks some of the built in functionality that native lookups have (advanced searching/favourites/multicolumn/expand rows etc)
  • For the users, the experience can be a bit janky too, with different lookups depending from where it was in GP they launched it
  • There is a maintenance overhead with any code developed

For the above reasons it seemed like a good idea to wrap the native lookups in a .NET class, and not reinvent the wheel each time we need a lookup for a field we’ve not encountered before.  We have very, very many add in forms in .NET. Most of these forms involve selecting information from GP, examples such as  Sites/Debtors/Creditors/Item Numbers/Bin numbers etc. A few of those .NET forms are modal in nature, from David’s comments on this post I think it is time to review those forms and see if we can remove the modality.

Steve Endow kindly tweeted the way he tackles this. Perhaps I need to use GP lookups where it makes sense and develop an advanced search window of our own that is more generic and make certain that if that alternative window is used, that it adds value to the places where it is used vs the native lookups.

Windows 10 Technical Preview, Installing “media driver your computer needs is missing”

I had the above error installing windows 10 technical preview and hope my experience may help someone else.

I downloaded the preview ISO image from MSDN subscriber downloads. I attempted to burn the image to DVD using Nero burner. Nero said the ISO had unexpected length, do I want to fix it? I should have stopped at that point and investigated, but being on my way out the door, I left it to burn anyway.

A couple of days later I slapped a new SSD into my machine. Then booting from the DVD of the technical preview installer, I get the error shown below;

Windows 8 "A media driver your computer needs is missing" error

A media driver your computer needs is missing. This could be a DVD, USB or Hard disk driver. If you have a CD, DVD,  or USB flash drive with the driver on it, please insert it now.

Note: If the installation media for Windows is in the DVD drive or on a USB drive, you can safely remove it for this step.

This reminds me that the motherboard is 4 years old, so I go update the BIOS and SATA drivers on the existing windows and on the motherboard as it needs doing anyway. Half an hour later I’m back to the same issue, the above message when I try to run the installer. It is then I remember the message message from a couple of days previously, that I’d pushed to the back of my mind and forgotten. That message burning the image gave me an uneasy feeling, so to be certain I got the image downloaded again and checked it against the checksum on the download page, it passed. This time burning the fresh ISO raised no issues in Nero.

This time the Windows 10 install went though like lightening, with me up and running in no time.

Lessons learned

The CRC checksum provided on the download pages are worth using as downloads are not always perfect, and even a corrupt ISO will run in a fashion, making it unobvious there is an issue.

(Finally) Say goodbye to windows XP, VDI is here for 2015

Give those Citrix and VM Ware sales people a pat on the back (and thank Microsoft for pulling XP support too). It seems that government customers are jumping into the world of VDI for 2015. Since the start of the year I’ve been fielding a stream of calls as new VDI projects kick off, to replace Windows XP based infrastructure. I expect that the sales people from VM Ware and Citrix will be getting some hefty bonuses with all these large projects underway!

It seems from my anecdotal, totally unscientific measurements that:

XenApp and Thin App are sharing the market 50%:50%.

C# & VB.NET how to control licenses on VDI environments?

The challenge this has brought to me is having to re-evaluate how we control software licencing for these customers in the new world of virtualised applications and desktops. In this new world of Application Virtualisation, the way this was historically implemented fails and also the licence model is out-dated. Our options are limited as the customers for this particular software work in a secure environment with no internet access (imagine that world…), so online licence validation is not easy. This leads to emailed key files and on premise  license servers.

If you are not keeping pace with what is happening out there, do some professional development, lookup desktop application streaming, application virtualisation and specifically

  • VMware - Thin App (Horizon view)
  • Citrix - XenApp
  • Microsoft - App-V.