Quantcast
Channel: Microsoft Dynamics GP Forum - Recent Threads
Viewing all articles
Browse latest Browse all 32807

Hiding A Window Using VS Tools

$
0
0

I have been moving all my VBA code to VS Tools to have web client compatibility. Stuck with one non-critical but important issue.

There is a code written on POP Print Options window, which is on event Window_BeforeOpen():

OpenVisible = false 'just hiding this window from users as we have a custom POP Print Options window

Equivalent code in VS Tools to hide a window is as follows:

    void PopPrintOptions_OpenBeforeOriginal(object sender, System.ComponentModel.CancelEventArgs e)

    {

        Dynamics.Forms.PopPrintOptions.PopPrintOptions.WindowState.Hide();

    }

But this code doesn't seem to be working. Window is not hidden, but I am sure event is triggered.

Am I missing out on something? Has anybody faced this already and have a solution to this?

Vaidy


Viewing all articles
Browse latest Browse all 32807

Trending Articles



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