0 Replies Latest reply on Jun 5, 2015 4:19 AM by nicola.fiorucci

    Form open two times on PROJECTCHANGED Event


      Hi,  i setted up a vbs script to run on Dxdesigner startup. The vbs script open a form (Myform) on ProjectChanged event. When i click on recent project on Dxesigner Welcome page Myform is opened two times.




      Option Explicit


      Dim dxdApp

      Set dxdApp = Application




      Scripting.AttachEvents Application, "App"


      Scripting.DontExit = True


      Sub App_ProjectChanged(prjData)


          Dim fileName

          Dim cmdMgr


          Set cmdMgr = Application.CommandsManager

      fileName = "T:\Myform.efm"

          Call cmdMgr.ExecuteCommand("form " +fileName)

      End Sub