Author Topic: Adding Keypad Popup to any control  (Read 2724 times)

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5260
    • View Profile
    • AdvancedHMI
Adding Keypad Popup to any control
« on: March 06, 2017, 08:32:24 PM »
The code that makes a control pop up a keypad for data entry is encapsulated in a region which makes it easy to add to any control:

- In Solution Explorer, expand down the AdvancedHMIControls project
- Expand down the Controls folder
- Right click DigitalPanelMeter.vb and select view code
- Scroll down looking for  #Region "Keypad popup for data entry"
- Select the code form the line all the way down to #End Region
- Copy that code
- Open the control you want to add the keypad pop up to
- Scroll down to the bottom of the code and insert the copied code just above End Class
- Build the project

You may have to exit Visual Studio and re-open because sometimes it does not like controls modified especially if they exist on a form.
« Last Edit: March 06, 2017, 08:37:36 PM by Archie »