Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics NAV (Archived)

Not publishing the "add-in event created in visual studio" in C/AL editor

(0) ShareShare
ReportReport
Posted on by 12

Hello All,

I am trying to add the windows media player in one of the page in demo database of 2013 R2.

I have followed all the steps but when I press f9 from the page to view the c/al editor.I cannot find the event I have created in visual studio class file.What could be the problem?

Any help will be appreciated.

Thanks in Advance

*This post is locked for comments

  • Suggested answer
    Community Member Profile Picture
    on at
    RE: Not publishing the "add-in event created in visual studio" in C/AL editor

    Check this link and see if it helps you..

    blogs.msdn.microsoft.com/.../let-nav-play-media-play-of-course

  • Suggested answer
    keoma Profile Picture
    32,727 on at
    RE: Not publishing the "add-in event created in visual studio" in C/AL editor

    You need the Attribute controladdinexport for the class.

    Also add following line in your code:

    public event ControlAddInEventHandler ControlAddIn;

  • Sulav Thapaliya Profile Picture
    12 on at
    RE: Not publishing the "add-in event created in visual studio" in C/AL editor

    1.using System;

    2.using System.Collection.Generic;

    3.using System.Linq;

    4.using System.Text;

    5.using System.Threading.Tasks;

    6.using Microsoft.Dynamics.Framework.UI.Extensibility;

    7.namespace WMPlayerControl

    8.{

    9.      [ControlAddIn("WindowsMediaPlayerControl")]

    10.   public interface IWindowsMediaPlayer

    11.   {

    12.       [ApplicationVisible]

    13.       event ApplicationEventHandler ControlAddInReady;

    14.       [ApplicationVisible]

    15.      void LoadVideo(String url);

    16.   }

    17. }

    well this is the c# code I wrote.

  • keoma Profile Picture
    32,727 on at
    RE: Not publishing the "add-in event created in visual studio" in C/AL editor

    please publish your c# code.

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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Kudos to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Microsoft Dynamics NAV (Archived)

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans