How to programmatically maximize a MATLAB Desktop window from C# code

6 views (last 30 days)
In my C# code I create a full desktop MATLAB session. Is there a way to programmatically maximize the MATLAB Desktop window from C#?

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 10 Dec 2023
You can use Microsoft's ShowWindow method to manipulate the MATLAB desktop window.
To see an example of how to do this, download the appropriate file:
These examples show you how to maximize the desktop window. Other manipulations, such as minimizing, can be implemented in a similar way using the appropriate ShowWindow parameter.

More Answers (0)

Tags

No tags entered yet.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!