Author Topic: multiple pages  (Read 6606 times)

blueskies

  • Newbie
  • *
  • Posts: 8
    • View Profile
multiple pages
« on: October 23, 2013, 02:10:15 AM »
Hello,
I am a newbie to vb. How do i make multiple pages/screens on an HMI in AdvancedHMI?
I do just fine with the single page HMI.

Thanks for any assistance.

blueskies

  • Newbie
  • *
  • Posts: 8
    • View Profile
Re: multiple pages
« Reply #1 on: October 23, 2013, 07:49:08 AM »
I think i figured out the answer to my own question.
add a Windows Form to the project and then add a button with the code:
Code: [Select]
Page2.Show()
Me.Hide()
with "Page2" being the name of the secondary form to switch screens

Sorry for the n00b question.

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5322
    • View Profile
    • AdvancedHMI
Re: multiple pages
« Reply #2 on: October 23, 2013, 08:19:44 AM »
You can also use the FormChangeButton that doesn't require any code.