Skip to main content

How to give focus to COBOL Text Window that is started from Visual Basic?

  • February 15, 2013
  • 0 replies
  • 0 views

Problem:

When a COBOL application in INT or GNT is executed in a shell from a Visual Basic program, it does not usually get the focus by simply doing the following:

     Shell "run MyPgm.gnt"

Resolution:

Here is the Shell function syntax:

processID=Shell(pathname[, windowstyle])

In the scenario involved to run INT or GNT, use vbNormalFocus for windowstyle.

    Shell "run adsamp.gnt", vbNormalFocus

Old KB# 7153