Useful Dialog Windows with .NET Interop and NAV 2009 R2

We have been asked recently how to display a Dialog window for the RoleTailored client that would collect a Directory path.

The old (good) Codeunit 412 “Common Dialog Management” was not suitable for that purpose (and honestly I would love to go for something more RTC oriented).

I thought myself, then, there may be a lot of useful Dialog windows based on System.Windows.Forms namespace.

  1. How to select a DIRECTORY
  2. How to select a FILE
  3. How to select a COLOR
  4. How to select a PRINTER

Attached you will find 1 unbounded page object in TXT format.

The code is fairly simple.


These postings are provided “AS IS” with no warranties and confer no rights. You assume all risk for your use.

Duilio Tacconi (dtacconi)         

Microsoft Dynamics Italy                     

Microsoft Customer Service and Support (CSS) EMEA

- Thanks to Carsten Scholling from Microsoft Dynamics CSS Germany -