I have 2 applications which interact each other. App1
is developed in power builder and App2
is in .Net
Power-builder application invoke .Net
application to do some stuff. My requirement to lock/disable the the power builder application while .Net
application is doing work.
I have done following code in power builder application to lock the active screen but it fails in few scenarios:
mainwindow.enabled=false
Code to invoke .Net
application:
Yield() //wait until .Net application complete his work
mainwindow.enabled=true
Any help will be highly appreciated.