Let NAV BEEP! (with .NET Interop and Microsoft Dynamics NAV 2009 R2)

It is known that in Role Tailored Based environment BEEP C/AL function is not supported.


This simple blog is based on SystemSounds Class from System.Media namespace


My Ingredients :

  • NAV 2009 R2 Role Tailored Client
  • Windows 7 Enterprise

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

The code is fairly simple: there are just 5 lines of code related to 5 page actions.






In order to have more fun with this object, I invite you to edit Control Panel:

Control Panel\Appearance and Personalization\Personalization

And push the sounds Action button (NOTE: normally “Question” is not present in system Themes) while switching between themes.

REMEMBER: Raise high the volume of your earphones / speakers.

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


Comments (3)

  1. Chris Hancock says:

    Hi Duilio,

    Thanks for posting this – the code sample is useful! I ran it on my local NAV database (NAV2009 R2) and it works fine but each time it asks me "Your NAV client is trying to run an external component … ". The options are "Allow this time but ask next time", and "Don't allow this time". Is there a registry setting I need to change to get rid of this annoying NAV message?



  2. dtacconi says:

    Thanks Chris.

    I should have answered to this request in the last two comments in this blog


    Please, post here if those are useful for you too.


  3. Chris Hancock says:

    Hi Duilio,

    That info in the blog post has worked perfectly – thanks a lot!



Skip to main content