02-02-2024 07:19 AM
How to make my DIAdem application window set to maximum size [ fit to window] using script?
For example: see below image. How to fit my diadem application to window size using script?
I want to run my script in maximized window and sometime if user didn't keep it in maximized size, I want to include maximize window lines in the start of the script to handle this use case.
something like,
Application.WindowState = xlMaximized
windWidth = Application.width
windHeight = Application.height
regards,
Durai
Solved! Go to Solution.
02-05-2024 04:04 AM
Hi Durai,
you can use WndShow() for this.
To maximize the window use :
call WndShow("SHELL","MAXIMIZE")
To switch back to windowed mode use :
call WndShow("SHELL","NORMAL")