# AcitveX and Navision Forms....

**URL:** <https://www.dynamicsuser.net/t/acitvex-and-navision-forms/7196>\
**Category:** Developers Forum\
**Created:** [May 29, 2003, 5:27pm UTC](https://www.dynamicsuser.net/t/acitvex-and-navision-forms/7196 "2003-05-29T17:27:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![nicbartie](https://avatars.discourse-cdn.com/v4/letter/n/46a35a/32.png) [@nicbartie](https://www.dynamicsuser.net/u/nicbartie)\
**Post date:** [May 29, 2003, 5:27pm UTC](https://www.dynamicsuser.net/t/acitvex-and-navision-forms/7196/1 "2003-05-29T17:27:17Z")

</div>

I wrote an OCX that references a driver for a device that uses the RS232 port. I want to load a form in navision and on the Onload trigger call this OCX that opens the device…The problem is that the when this call occurs Navision executes this code first until the device is started and then only shows the form… I want to make the form show first. I hope I eplained this properly.[?]

---

<div class="post-metadata">

**Author:** ![CMGW](https://avatars.discourse-cdn.com/v4/letter/c/ba9def/32.png) [@CMGW](https://www.dynamicsuser.net/u/CMGW)\
**Post date:** [May 29, 2003, 6:16pm UTC](https://www.dynamicsuser.net/t/acitvex-and-navision-forms/7196/2 "2003-05-29T18:16:40Z")

</div>

Nic, Which Navision form trigger are you using for your code? I have not heard of the OnLoad trigger… there is the OnInit, OnOpenForm & OnActivateForm that might be relevant in your case. Chris

---

<div class="post-metadata">

**Author:** ![nicbartie](https://avatars.discourse-cdn.com/v4/letter/n/46a35a/32.png) [@nicbartie](https://www.dynamicsuser.net/u/nicbartie)\
**Post date:** [May 30, 2003, 12:02pm UTC](https://www.dynamicsuser.net/t/acitvex-and-navision-forms/7196/3 "2003-05-30T12:02:08Z")

</div>

I think I tried the OnOpenForm Trigger and possibly OnInit and also OnActivateForm… I was thinking if the OCX’s onLoad event which I suppose is irrelevant anyway… I will have to check this again but I am sure that I may get the same result…
