web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Can anyone tell me how to disable an activeX control on a form if the control is not loaded on the client?

(0) ShareShare
ReportReport
Posted on by 35

Good Morning

I have an activeX control on a Form (ax4) where the control is not loaded on every client.

I get an annoying message everytime a client that does not have the control, on their PC, opens the Form.

The error message come from within the super of the forms init method(somewhere).

Is there a simple way I can detected that the control is not availed then remove/diable it on the form?

I had a look at how the GanttClient checks to see if the control is available in the GanttClient class methods checkactiveX and getGantversionfromRegistry, but I could not get this to work from within my form -- the activex control is not initialised before the call to super() in the init method -- so nothing on the control is available ie(enable) . it's got to be initialed before it can be diabled, which is not going to work)

Thanks

David

 

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    David John Hills Profile Picture
    35 on at

    It does not look like it is possible to delete/remove the ActiveX control before the Init() method of the form is run.

    So looks easier to dynamically add the ActiveX control to the form after the init() method has run (after super) conditionally on it being available.

  • Luegisdorf Profile Picture
    1,930 on at

    Hi David

    I agree with you. Had the same problem and finally decided to add the control at runtime.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans