Quantcast
Channel: Mentor Graphics Communities: Message List
Viewing all articles
Browse latest Browse all 4541

Form open two times on PROJECTCHANGED Event

$
0
0

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.

 

Why??

 

Option Explicit

 

Dim dxdApp

Set dxdApp = Application

 

'Scripting.AddTypeLibrary("ViewDraw.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


Viewing all articles
Browse latest Browse all 4541

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>