Discussion of article "Developing graphical interfaces based on .Net Framework and C# (part 2): Additional graphical elements" - page 3

 
Igor Makanu:

You definitely have to google it, there's some kind of process going on.

Alternatively, you still need to call Form.Close() for Windows to close the application.

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


when calling .dll I create 2 threads and run each form in them via ShowDialog(), I kill forms by trivial call of Close() method and free memory just in case - I don't know how the rubbish collector works there in .Net )))))

It's 100% a matter of threads or marshalling or interaction between these threads. In short, not all recipes are equally useful. You can play with threads, but I would not want to rewrite GuiController just because of this.

 
Hello! Thank you very much. Very useful article. Can you tell me how I can work with the table through GuiContoller? Thanks in advance!
 

Can you tell me if it is possible to attach a C# window to a chart window?

So that it would not hang separately, but would be integrated similarly to the built-in trading panel?

 

Error in ClickOnElement;


'ClickOnElement' - undeclared identifier GuiMtController.mq5 57 16


 

Can you please tell me how to solve the error reported in the following code? Thanks !!!!!!!

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

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

 
Hi,
thanks for the comprehensive info. Does this also work as a WPF class library in the new .NET Core?
 
I was playing with this library at the weekend !!!!. It's a pity I can't upload anything to the Code Base, because it's an external library.... But I really want to share it ))))

Here are the links:
to the repo: https://github.com/5nail000/MtGui_ProfitCalculator/tree/master/mql5
mql5-script code: 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

The library was a bit modified by me, and the panel was implemented not as a separate library, but integrated into the base library. In the repo the code of the library and the form is also available...


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.
 
Figured out how to upload it to CodeBase thanks to @fxsaber for the tip!!!!