Author Topic: About FormChangeButton in C#  (Read 1291 times)

Nelson

  • Newbie
  • *
  • Posts: 3
    • View Profile
About FormChangeButton in C#
« 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
but it not have the FormChangeButton in C#, what should i do?

Thank you a lot!

Nelson

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5262
    • View Profile
    • AdvancedHMI
Re: About FormChangeButton in C#
« Reply #1 on: April 26, 2016, 03:14:50 AM »
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

Nelson

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: About FormChangeButton in C#
« Reply #2 on: April 26, 2016, 04:38:00 AM »
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

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5262
    • View Profile
    • AdvancedHMI
Re: About FormChangeButton in C#
« Reply #3 on: April 26, 2016, 07:07:58 AM »
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.

Nelson

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: About FormChangeButton in C#
« Reply #4 on: April 26, 2016, 10:48:13 PM »
Thank you for your explanation !!