AcitveX and Navision Forms....

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.[?]

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

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…