AdvancedHMI Software

General Category => Tips & Tricks => Topic started by: Archie on March 06, 2017, 08:32:24 PM

Title: Adding Keypad Popup to any control
Post by: Archie 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.