- If you are calling MATLAB from a C# application using MATLAB as a COM Automation Server, see this code .
- If you are calling MATLAB from a C# application using .NET Engine, see this code .
How to programmatically maximize a MATLAB Desktop window from C# code
6 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
MathWorks Support Team
am 7 Jul. 2023
Bearbeitet: MathWorks Support Team
am 10 Dez. 2023
In my C# code I create a full desktop MATLAB session. Is there a way to programmatically maximize the MATLAB Desktop window from C#?
Akzeptierte Antwort
MathWorks Support Team
am 10 Dez. 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.
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu .NET Methods in MATLAB finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!