- 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
7 次查看(过去 30 天)
显示 更早的评论
MathWorks Support Team
2023-7-7
编辑: MathWorks Support Team
2023-12-10
In my C# code I create a full desktop MATLAB session. Is there a way to programmatically maximize the MATLAB Desktop window from C#?
采纳的回答
MathWorks Support Team
2023-12-10
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 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 .NET Methods in MATLAB 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!