VBA screen switch on multi-monitor system

VBA screen switch on multi-monitor system

Hi to all I use zenon 7.11 with 2 monitors. I have some popup screen which I start by the screen switch function from VBA code from combined element. I use VBA code for some substitutions of the replace links of the my RTfunction. My combined element can be displayed on left or on right monitor accordingly. But my popup screen is always displayed on left monitor. Would you tell me how to do that popup screen is displayed on right monitor if it was started from right monitor? P.S. I've tested If I start my screen switch function not from VBA code but just from button then my popup screen is displayed correctly. From left monitor on left monitor. And from right monitor on right monitor accordingly. Part of VBA code that I use. Public Sub StartFunction(strFuncName As String) Dim zFCT As RtFunction Set zFCT = thisProject.RtFunctions.item(strFuncName) If Not zFCT Is Nothing Then zFCT.Start End If End Sub

This is a migrated post! Originally posted on 17.06.2014 by user andrey_k. Please be aware that information can be outdated.

    Disclaimer

    This document governs the use of our Community Forum. By registering and using the platform, you accept these conditions.

    The COPA-DATA Community Forum serves to encourage the exchange of information and experience about the zenon software between forum users respectively zenon users.

    Please mind that any published information on the Community Forum is the subjective opinion and view based on the experience and the level of knowledge of the author. COPA-DATA does not overtake any responsibility for the content and the accuracy of the shared information.

    Users of the Community Forum are encouraged to share only well-founded experiences and to point out any risks associated with the implementation of proposed solutions to problems. COPA-DATA at its absolute discretion, reserves the right to moderate the forum. In this connection COPA-DATA may remove any information containing false facts, potentially dangerous solutions, bad language or content that may insult, degrade or discriminate others. COPA-DATA may block a non-complying user from forum access if the user violated this provision.

    COPA-DATA reserves the right to change this document from time to time at own discretion.


    Ing. Punzenberger COPA-DATA GmbH
    Karolingerstraße 7b · 5020 Salzburg · Austria
    www.copadata.com