文章 "基于 .Net 框架和 C# 开发图形界面(第二部分):另外的图形元素" - 页 3

 
Igor Makanu:

你肯定得用谷歌搜索一下,这其中肯定有什么过程。

或者,你仍然需要调用 Windows 的 Form.Close() 来关闭应用程序。

https://stackoverflow.com/questions/3097364/c-sharp-form-close-vs-form-dispose


在调用 .dll 时,我创建了 2 个线程,并通过 ShowDialog() 在其中运行每个表单,我通过调用Close() 方法杀死表单,并释放内存以防万一--我不知道 .Net ))))) 中的垃圾收集器是如何工作的。

这 100%是线程、Marshalling 或这些线程之间交互的问题。简而言之,并非所有的方法都同样有用。你可以使用线程,但我不想因此而重写 GuiController。

 
您好!非常感谢。这篇文章非常有用。能告诉我如何通过 GuiContoller 使用表格吗?非常感谢!
 

您能告诉我是否有可能将 C# 窗口附加到图表窗口上?

这样它就不会单独悬挂,而是与内置交易面板类似地集成在一起?

 

ClickOnElement 中的错误;


'ClickOnElement' - 未声明标识符 GuiMtController.mq5 57 16


 

请教下面这段代码报错怎样解决?谢谢!!!!!!!

GuiController::SendEvent("ButtonForm", MtGuiController.MessageBox,LockControl, YesNoCancel, msg);

    'LockControl' - undeclared identifier GuiControllerElementsDemo.mq5 119 76
    'YesNoCancel' - undeclared identifier GuiControllerElementsDemo.mq5 119 89

 
您好,
,感谢您提供的全面信息。在新的 .NET Core 中,这也可以作为 WPF类库 使用吗?
 
周末我在玩这个库 !!!!。很遗憾我不能上传任何东西到代码库,因为它是一个外部库....。但我真的很想分享它 ))))

以下是链接:
到 repo 的链接 https://github.com/5nail000/MtGui_ProfitCalculator/tree/master/mql5
mql5-script 代码https://github.com/5nail000/MtGui_ProfitCalculator/raw/refs/heads/master/mql5/CalculateHistoryProfit.mq5
MtGuiController.dll : https://github.com/5nail000/MtGui_ProfitCalculator/raw/refs/heads/master/mql5/MtGuiController.dll

我对这个库进行了一些修改,面板不是作为一个单独的库实现的,而是集成到了基础库中。在 repo 中还提供了库和窗体的代码...


MtGui_ProfitCalculator/mql5 at master · 5nail000/MtGui_ProfitCalculator
MtGui_ProfitCalculator/mql5 at master · 5nail000/MtGui_ProfitCalculator
  • 5nail000
  • github.com
Contribute to 5nail000/MtGui_ProfitCalculator development by creating an account on GitHub.
 
找到了如何将其上传到 CodeBase 的方法,感谢@fxsaber 的提示!!!!!