AdvancedHMI Software
General Category => Support Questions => Topic started by: Nelson on April 25, 2016, 11:59:27 PM
-
Hi everyone,
I am new. And I read Tips as much as possible.
I try using C# by http://advancedhmi.com/forum/index.php?topic=774.msg3726#msg3726 (http://advancedhmi.com/forum/index.php?topic=774.msg3726#msg3726)
but it not have the FormChangeButton in C#, what should i do?
Thank you a lot!
Nelson
-
You will not have a form change button in any other project except the default Vb project. You will need to change forms via code:
Form2.Show
Me.Hide
-
Thanks Archie,
I don't know why i can use other controls,but not form change button.
Because it is not inherit from "MfgControl.AdvancedHMI.Controls.dll" ??
I am curious.
Best Regards
-
The FormChangeButton is part of the AdvancedHMI project and not the AdvancedHMIControls project. It has to be in that project because it uses reflection to get a list of forms within the project which it exists. You could convert the FormChangeButton.vb to C# and put it in your C# project.
-
Thank you for your explanation !!